X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fcharmap.c;h=a9ddf7258c9cecb38c191b41350fe0ca0603f649;hb=a20e59c5087fb92c419f2330c786367f9ce8ccd2;hp=e6ea9605e95a3799e8589d186ae182c6d0883153;hpb=98e21f950e6d0babe88a6a1ccb03b90f0b3a6b1a;p=idzebra-moved-to-github.git diff --git a/util/charmap.c b/util/charmap.c index e6ea960..a9ddf72 100644 --- a/util/charmap.c +++ b/util/charmap.c @@ -3,7 +3,7 @@ * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * - * $Id: charmap.c,v 1.20 2002-04-04 20:50:37 adam Exp $ + * $Id: charmap.c,v 1.22 2002-05-03 13:46:05 adam Exp $ * */ @@ -185,7 +185,7 @@ const char *chr_map_output(chrmaptab maptab, const char **from, int len) unsigned char zebra_prim(char **s) { unsigned char c; - unsigned int i; + unsigned int i = 0; yaz_log (LOG_DEBUG, "prim %.3s", *s); if (**s == '\\') @@ -369,7 +369,7 @@ chrmaptab chrmaptab_create(const char *tabpath, const char *name, int map_only, NMEM nmem; logf (LOG_DEBUG, "maptab %s open", name); - if (!(f = yaz_path_fopen_base(tabpath, name, "r", tabroot))) + if (!(f = yaz_fopen(tabpath, name, "r", tabroot))) { logf(LOG_WARN|LOG_ERRNO, "%s", name); return 0; @@ -511,7 +511,7 @@ chrmaptab chrmaptab_create(const char *tabpath, const char *name, int map_only, logf(LOG_WARN, "Syntax error at '%s' in %s", line, name); } - fclose(f); + yaz_fclose(f); if (errors) { chrmaptab_destroy(res);