projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ZOOM: resultsets not ref counted by connections
[yaz-moved-to-github.git]
/
src
/
marc_read_iso2709.c
diff --git
a/src/marc_read_iso2709.c
b/src/marc_read_iso2709.c
index
07cd59a
..
7edf8be
100644
(file)
--- a/
src/marc_read_iso2709.c
+++ b/
src/marc_read_iso2709.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2010 Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-177,7
+177,8
@@
int yaz_marc_read_iso2709(yaz_marc_t mt, const char *buf, int bsize)
buf[i] != ISO2709_RS && buf[i] != ISO2709_IDFS &&
buf[i] != ISO2709_FS)
i++;
buf[i] != ISO2709_RS && buf[i] != ISO2709_IDFS &&
buf[i] != ISO2709_FS)
i++;
- yaz_marc_add_subfield(mt, buf+code_offset, i - code_offset);
+ if (i > code_offset)
+ yaz_marc_add_subfield(mt, buf+code_offset, i - code_offset);
}
}
else
}
}
else