From: Peter Verthez Date: Sun, 29 Dec 2002 13:04:25 +0000 (+0000) Subject: Fixed error with uninitialized variable. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=7e2a5e6be271d2745e9d7d5b764102c2a213445a;p=gedcom-parse.git Fixed error with uninitialized variable. --- diff --git a/utf8/utf8-convert.c b/utf8/utf8-convert.c index d573ad7..264cb9a 100644 --- a/utf8/utf8-convert.c +++ b/utf8/utf8-convert.c @@ -209,7 +209,7 @@ char* convert_from_utf8(convert_t conv, const char* input, int* conv_fails, struct conv_buffer* outbuf; if (!conv || !conv->outbuf || !input) { - if (conv_fails != NULL) *conv_fails = insize; + if (conv_fails != NULL) *conv_fails = (input ? strlen(input) : 0); return NULL; } insize = strlen(input);