From: Peter Verthez Date: Sun, 20 Jan 2002 13:29:32 +0000 (+0000) Subject: Initialize conv_fails variable (for case of null strings). X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=465e8c27883cb6e9c4df526e91da9c7bc1a7b506;p=gedcom-parse.git Initialize conv_fails variable (for case of null strings). --- diff --git a/standalone.c b/standalone.c index e8f94b7..75b662c 100644 --- a/standalone.c +++ b/standalone.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "gedcom.h" #include "utf8-locale.h" @@ -174,7 +175,7 @@ void default_cb(Gedcom_ctxt ctxt, int level, char *tag, char *raw_value, int tag_value) { char *converted = NULL; - int conv_fails; + int conv_fails = 0; if (raw_value) converted = convert_utf8_to_locale(raw_value, &conv_fails); output(0, "== %d %s (%d) %s (ctxt is %d, conversion failures: %d)\n",