fix(console): Clear values in string reset function

This commit is contained in:
Shyamal Khachane 2023-08-11 11:07:04 +05:30
parent 166c5a7d58
commit d04b9923ee

View File

@ -3615,6 +3615,9 @@ TRexBool trex_getsubexp(TRex* exp, int n, TRexMatch *subexp)
static void arg_str_resetfn(struct arg_str *parent) static void arg_str_resetfn(struct arg_str *parent)
{ {
ARG_TRACE(("%s:resetfn(%p)\n", __FILE__, parent)); ARG_TRACE(("%s:resetfn(%p)\n", __FILE__, parent));
for (int i = 0; i < parent->count; i++) {
parent->sval[i] = "";
}
parent->count = 0; parent->count = 0;
} }