From 7e2a5e6be271d2745e9d7d5b764102c2a213445a Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sun, 29 Dec 2002 13:04:25 +0000 Subject: [PATCH] Fixed error with uninitialized variable. --- utf8/utf8-convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2