Compiling osrf_utf8.c generates the following warning:
osrf_utf8.c:510:29: warning: utf8_char may be used uninitialized in this
function [-Wuninitialized]
So... initialize utf8_char when we declare it, and make the compiler
happy.
Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
*/
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;