1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Fix for only specifying one command with -c

(This used to be commit 7418351427)
This commit is contained in:
Tim Potter 2003-02-21 04:25:04 +00:00
parent 1fc2976e14
commit 4834c61ebc

View File

@ -170,7 +170,10 @@ static char* next_command (char** cmdstr)
if (p)
*p = '\0';
pstrcpy(command, *cmdstr);
*cmdstr = p + 1;
if (p)
*cmdstr = p + 1;
else
*cmdstr = NULL;
return command;
}