projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6d60541
)
zoomsh's shows 1 record by default
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 28 Aug 2009 08:53:35 +0000
(10:53 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 28 Aug 2009 08:53:35 +0000
(10:53 +0200)
zoom/zoomsh.c
patch
|
blob
|
history
diff --git
a/zoom/zoomsh.c
b/zoom/zoomsh.c
index
73d94bd
..
1bff1d4
100644
(file)
--- 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, 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;
if (next_token_copy(args, render_str, sizeof(render_str)) >= 0)
type = render_str;