From 2352f7f9c3d0c138a9fb7d02decc2a3a62571625 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 3 May 2002 13:46:05 +0000 Subject: [PATCH] make checkergcc happy --- dict/open.c | 8 ++++++-- util/charmap.c | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dict/open.c b/dict/open.c index d96f989..a4f136a 100644 --- a/dict/open.c +++ b/dict/open.c @@ -1,10 +1,13 @@ /* - * Copyright (C) 1994-1999, Index Data + * Copyright (C) 1994-2002, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: open.c,v $ - * Revision 1.17 2000-12-05 09:59:10 adam + * Revision 1.18 2002-05-03 13:47:15 adam + * make checkergcc happy + * + * Revision 1.17 2000/12/05 09:59:10 adam * Work on dict_delete_subtree. * * Revision 1.16 1999/05/26 07:49:13 adam @@ -99,6 +102,7 @@ Dict dict_open (BFiles bfs, const char *name, int cache, int rw, } if (dict_bf_readp (dict->dbf, 0, &head_buf) <= 0) { + memset (dict->head.magic_str, 0, sizeof(dict->head.magic_str)); strcpy (dict->head.magic_str, DICT_MAGIC); dict->head.last = 1; dict->head.root = 0; diff --git a/util/charmap.c b/util/charmap.c index cbfbf25..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.21 2002-04-05 12:54:29 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 == '\\') -- 1.7.10.4