fix erroneous removal of get_tok_size initialization to 0 in get_tok_value() (thanks to Joanne Low)

This commit is contained in:
Stefan Frederik 2021-09-23 21:06:14 +02:00
parent 2d054898f0
commit 6210f60232
1 changed files with 2 additions and 0 deletions

View File

@ -469,8 +469,10 @@ const char *get_tok_value(const char *s,const char *tok, int with_quotes)
my_free(976, &result);
my_free(977, &token);
size = sizetok = 0;
xctx->get_tok_size = 0;
return "";
}
xctx->get_tok_size = 0;
/* dbg(2, "get_tok_value(): looking for <%s> in <%s>\n",tok,s); */
if( size == 0 ) {
sizetok = size = CADCHUNKALLOC;