mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(console): Clear values in string reset function
This commit is contained in:
parent
166c5a7d58
commit
d04b9923ee
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user