git clone https://orangeshoelaces.net/git/ii.git
Author: Nico Golde on 01/29/2007
Committer: Nico Golde on 01/29/2007
small fix
ii.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ii.c b/ii.c
index 99235ef..d08c43c 100644
--- a/ii.c
+++ b/ii.c
@@ -318,7 +318,7 @@ static void proc_server_cmd(char *buf)
<crlf> ::= CR LF
*/
if(buf[0] == ':') { /* check prefix */
- p = strchr(buf, ' ');
+ if (!(p = strchr(buf, ' '))) return;
*p = 0;
for(++p; *p == ' '; p++);
cmd = p;