/* 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
struct marcmap *mm;
struct marcmap *mmhead;
FILE *fp;
- char c;
+ int c;
char buf[256];
int len;
int field;
mm = NULL;
mmhead = NULL;
fp = fopen(filename, "r");
+ if (!fp)
+ return mmhead;
while ((c = getc(fp) ) != EOF)
{