fix: option parsing may failed due to a bug introduced in 1.411-RC
parent
f2adb3224b
commit
4e2dbb13a3
|
@ -1898,7 +1898,10 @@ static int strappend(char **dest, const char *append)
|
|||
return -1;
|
||||
}
|
||||
|
||||
strcat(p, append);
|
||||
if (*dest)
|
||||
strcat(p, append);
|
||||
else
|
||||
strcpy(p, append);
|
||||
*dest = p;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue