From 131f137354647cefe2e3494bdb946d77b8c2e959 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 28 Aug 2009 10:53:35 +0200 Subject: [PATCH 1/1] zoomsh's shows 1 record by default --- zoom/zoomsh.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 73d94bd..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; -- 1.7.10.4