changed code to clear out a variable before use in fnc_getnwifcfg()
This commit is contained in:
parent
cbfe6bf628
commit
7a1f072f87
@ -1819,6 +1819,7 @@ static int fnc_getnwifcfg (qse_awk_rtx_t* rtx, const qse_awk_fnc_info_t* fi)
|
|||||||
qse_awk_rtx_valtostr_out_t out;
|
qse_awk_rtx_valtostr_out_t out;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
|
QSE_MEMSET (&cfg, 0, QSE_SIZEOF(cfg));
|
||||||
out.type = QSE_AWK_RTX_VALTOSTR_CPLCPY;
|
out.type = QSE_AWK_RTX_VALTOSTR_CPLCPY;
|
||||||
out.u.cplcpy.ptr = cfg.name;
|
out.u.cplcpy.ptr = cfg.name;
|
||||||
out.u.cplcpy.len = QSE_COUNTOF(cfg.name);
|
out.u.cplcpy.len = QSE_COUNTOF(cfg.name);
|
||||||
|
@ -559,7 +559,7 @@ qse_size_t qse_ip6adtombs (const qse_ip6ad_t* ipad, qse_mchar_t* buf, qse_size_t
|
|||||||
|
|
||||||
tp += qse_fmtuintmaxtombs (
|
tp += qse_fmtuintmaxtombs (
|
||||||
tp, QSE_COUNTOF(tmp) - (tp - tmp),
|
tp, QSE_COUNTOF(tmp) - (tp - tmp),
|
||||||
words[i], 16, 0, QSE_WT('\0'), QSE_NULL);
|
words[i], 16, 0, QSE_MT('\0'), QSE_NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Was it a trailing run of 0x00's? */
|
/* Was it a trailing run of 0x00's? */
|
||||||
|
Loading…
Reference in New Issue
Block a user