X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmarcmap.c;h=f79b3232a123349fc6b1fc5c549680f0348e24b5;hb=817e3ec506c4095bc4fcc1923cee36153ef4ee43;hp=42491e2d90eada271501861843449b103389eb78;hpb=edbde31bf017867ac5cc3951f6cabdbc43f1f7ee;p=pazpar2-moved-to-github.git diff --git a/src/marcmap.c b/src/marcmap.c index 42491e2..f79b323 100644 --- a/src/marcmap.c +++ b/src/marcmap.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2013 Index Data + Copyright (C) Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -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) {