mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
Don't leak tmpstr.
MFC after: 2 weeks
This commit is contained in:
parent
46374cbf54
commit
80cb4b11eb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335469
@ -61,7 +61,7 @@ command(const char *cmd)
|
||||
if (*cp)
|
||||
*cp++ = '\0';
|
||||
if (*tmpstr1 == '\0')
|
||||
return;
|
||||
goto done;
|
||||
for (; *cp && isspace(*cp); cp++)
|
||||
;
|
||||
if (strcmp(tmpstr1, "quit") == 0 || strcmp(tmpstr1, "q") == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user