projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Doc: minor reformatting changes
[pazpar2-moved-to-github.git]
/
src
/
marcmap.c
diff --git
a/src/marcmap.c
b/src/marcmap.c
index
fd9b1be
..
59cf858
100644
(file)
--- a/
src/marcmap.c
+++ b/
src/marcmap.c
@@
-42,7
+42,7
@@
struct marcmap *marcmap_load(const char *filename, NMEM nmem)
struct marcmap *mm;
struct marcmap *mmhead;
FILE *fp;
- char c;
+ int c;
char buf[256];
int len;
int field;
@@
-54,6
+54,8
@@
struct marcmap *marcmap_load(const char *filename, NMEM nmem)
mm = NULL;
mmhead = NULL;
fp = fopen(filename, "r");
+ if (!fp)
+ return mmhead;
while ((c = getc(fp) ) != EOF)
{