1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-12 14:29:28 +00:00

Don't leak tmpstr.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2018-06-21 07:42:28 +00:00
parent 46374cbf54
commit 80cb4b11eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335469

View File

@ -61,7 +61,7 @@ command(const char *cmd)
if (*cp) if (*cp)
*cp++ = '\0'; *cp++ = '\0';
if (*tmpstr1 == '\0') if (*tmpstr1 == '\0')
return; goto done;
for (; *cp && isspace(*cp); cp++) for (; *cp && isspace(*cp); cp++)
; ;
if (strcmp(tmpstr1, "quit") == 0 || strcmp(tmpstr1, "q") == 0) if (strcmp(tmpstr1, "quit") == 0 || strcmp(tmpstr1, "q") == 0)