From: Adam Dickmeiss Date: Wed, 15 Jan 2014 13:41:57 +0000 (+0100) Subject: zoomsh: empty command ignored YAZ-723 X-Git-Tag: v5.0.11~3 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=c44b53d5d69b1aa73ca1561de1b83392527c7233;p=yaz-moved-to-github.git zoomsh: empty command ignored YAZ-723 rather than performing exit of zoomsh. --- diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 7739301..607a6ff 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -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))