From: Adam Dickmeiss Date: Mon, 30 Jul 2012 13:18:50 +0000 (+0200) Subject: zoomsh: check for ext type parameter X-Git-Tag: v4.2.36~15 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=80184e0ebd6d82ad97874372236c2ad956e01d72;p=yaz-moved-to-github.git zoomsh: check for ext type parameter Must be given. --- diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 238c3d9..26aab7b 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -401,6 +401,12 @@ static int cmd_ext(ZOOM_connection *c, ZOOM_resultset *r, int ret = 0; WRBUF ext_type_str = next_token_new_wrbuf(args); + if (!ext_type_str) + { + printf("es: missing type " + "(itemorder, create, drop, commit, update, xmlupdate)\n"); + return 1; + } for (i = 0; i