fix: option parsing may failed due to a bug introduced in 1.411-RC

master
szaka 2007-04-11 22:16:17 +00:00
parent f2adb3224b
commit 4e2dbb13a3
1 changed files with 4 additions and 1 deletions

View File

@ -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;