X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=1bff1d4a2ed93f7e7e22c419c30fa9338ec3c318;hp=a6da27d7c66d5e8601cc7c91ae7c8781ca9cab14;hb=131f137354647cefe2e3494bdb946d77b8c2e959;hpb=30b68ac32ab0516934cee67a076b53b0cb85c6d9 diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index a6da27d..1bff1d4 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -235,8 +235,9 @@ static void cmd_show(ZOOM_connection *c, ZOOM_resultset *r, if (next_token_copy(args, start_str, sizeof(start_str)) >= 0) ZOOM_options_set(options, "start", start_str); - if (next_token_copy(args, count_str, sizeof(count_str)) >= 0) - ZOOM_options_set(options, "count", count_str); + if (next_token_copy(args, count_str, sizeof(count_str)) <= 0) + strcpy(count_str, "1"); + ZOOM_options_set(options, "count", count_str); if (next_token_copy(args, render_str, sizeof(render_str)) >= 0) type = render_str; @@ -475,7 +476,7 @@ static void cmd_help(ZOOM_connection *c, ZOOM_resultset *r, { printf("connect \n"); printf("search \n"); - printf("show [ []\n"); + printf("show [ [ [\n"); printf("quit\n"); printf("close \n");