fix a regression in expandlabel() returning it string argument without making a copy
This commit is contained in:
parent
c4e1fb6a31
commit
42781f8456
|
|
@ -101,7 +101,8 @@ const char *expandlabel(const char *s, int *m)
|
||||||
if(parselabel_debug >= 3) fprintf(errfp, "expandlabel(): entering\n");
|
if(parselabel_debug >= 3) fprintf(errfp, "expandlabel(): entering\n");
|
||||||
if(!strpbrk(s, "*,.:")) { /* shortcut: nothing to parse / expand */
|
if(!strpbrk(s, "*,.:")) { /* shortcut: nothing to parse / expand */
|
||||||
*m = 1;
|
*m = 1;
|
||||||
return s;
|
my_strdup(_ALLOC_ID_, &dest_string.str, s);
|
||||||
|
return dest_string.str;
|
||||||
}
|
}
|
||||||
buf=yy_scan_string(s);
|
buf=yy_scan_string(s);
|
||||||
yyparse();
|
yyparse();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue