projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
24aa5ea
)
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 24 Sep 2008 18:10:48 +0000
(20:10 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 24 Sep 2008 18:10:48 +0000
(20:10 +0200)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
4fd9406
..
c34d201
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-3278,6
+3278,12
@@
int cmd_format(const char *arg)
{
if (!strcmp(form_str, "none"))
break;
+ if (!yaz_string_to_oid_odr(yaz_oid_std(), CLASS_RECSYN, form_str, out))
+ {
+ printf("Bad format: %s\n", form_str);
+ recordsyntax_size = 0;
+ return 0;
+ }
recordsyntax_list[idx] = xstrdup(form_str);
cp += nor;
idx++;