LP954059: Silence uninitialized var warning
[OpenSRF.git] / src / libopensrf / osrf_utf8.c
index fe468d7..e83be28 100644 (file)
@@ -346,7 +346,7 @@ typedef enum {
 */
 int buffer_append_utf8( growing_buffer* buf, const char* string ) {
        utf8_state state = S_BEGIN;
-       unsigned long utf8_char;
+       unsigned long utf8_char = 0;
        const unsigned char* s = (unsigned char *) string;
        int i = 0;
        int rc = 0;