zoomsh: empty command ignored YAZ-723
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 15 Jan 2014 13:41:57 +0000 (14:41 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 15 Jan 2014 13:41:57 +0000 (14:41 +0100)
rather than performing exit of zoomsh.

zoom/zoomsh.c

index 7739301..607a6ff 100644 (file)
@@ -752,7 +752,7 @@ static int cmd_parse(ZOOM_connection *c, ZOOM_resultset *r,
 
     cmd_len = next_token(buf, &cmd_str);
     if (cmd_len < 0)
-        return -1;
+        return 0;
     if (is_command("quit", cmd_str, cmd_len))
         return -1;
     else if (is_command("set", cmd_str, cmd_len))