X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fcharmap.c;h=cb9d0b41803a24a0ba5e18d91a9d42d20d0fbcdc;hb=dc58eff985d645a38b3945aa248a4e2b8070ab98;hp=f5f62074737876e2c345dab8b8d83844547347b8;hpb=e7fc5dfa9d99d5d81f4e5de31547c413bca28c91;p=idzebra-moved-to-github.git diff --git a/util/charmap.c b/util/charmap.c index f5f6207..cb9d0b4 100644 --- a/util/charmap.c +++ b/util/charmap.c @@ -1,4 +1,4 @@ -/* $Id: charmap.c,v 1.38 2005-06-15 21:31:45 adam Exp $ +/* $Id: charmap.c,v 1.39 2005-08-22 08:17:01 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -101,11 +101,12 @@ static chr_t_entry *set_map_string(chr_t_entry *root, NMEM nmem, } if (!len) { - if (!root->target || !root->target[0] || strcmp(root->target[0], to)) + if (!root->target || !root->target[0] || + strcmp((const char *) root->target[0], to)) { if (from_0 && root->target && root->target[0] && root->target[0][0] && - strcmp (root->target[0], CHR_UNKNOWN)) + strcmp((const char *) root->target[0], CHR_UNKNOWN)) { yaz_log (YLOG_WARN, "duplicate entry for charmap from '%s'", from_0);