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
(parent:
8d297aa
)
Allow any range for dummy MARC
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 25 Jan 2010 10:59:04 +0000
(11:59 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 25 Jan 2010 10:59:04 +0000
(11:59 +0100)
ztest/read-marc.c
patch
|
blob
|
history
diff --git
a/ztest/read-marc.c
b/ztest/read-marc.c
index
58cbfc2
..
09fecc7
100644
(file)
--- a/
ztest/read-marc.c
+++ b/
ztest/read-marc.c
@@
-1578,6
+1578,9
@@
char *dummy_marc_record (int num, ODR odr)
inf = fopen ("dummy-records", "r");
if (!inf)
{ /* file not there. Get them from fixed array */
+ if (num < 1)
+ return 0;
+ return marc_records[(num-1) % 24];
if (num < 1 || num > 24)
return 0;
return marc_records[num-1];