# HG changeset patch # User jbe # Date 1406832855 -7200 # Node ID 0c230f70196724c295b22192d2d42a3a0fb13101 # Parent 8e969519f7c722e4d9689f5ea015df49bb6707ee Added missing initialized for keybuf in json_export_internal function of JSON library diff -r 8e969519f7c7 -r 0c230f701967 libraries/json/json.c --- a/libraries/json/json.c Thu Jul 31 20:49:16 2014 +0200 +++ b/libraries/json/json.c Thu Jul 31 20:54:15 2014 +0200 @@ -731,7 +731,7 @@ int anyelement = 0; size_t keycount = 0; size_t keypos = 0; - json_key_t *keybuf; + json_key_t *keybuf = NULL; lua_Integer idx; lua_settop(L, json_export_internal_value_idx); if (json_isnullmark(L, json_export_internal_value_idx)) {