diff --git a/src/dump.c b/src/dump.c index e0750c5..89802c6 100644 --- a/src/dump.c +++ b/src/dump.c @@ -101,7 +101,7 @@ static int dump_indent(size_t flags, int depth, int space, json_dump_callback_t static int dump_string(const char *str, size_t len, json_dump_callback_t dump, void *data, size_t flags) { const char *pos, *end, *lim; - int32_t codepoint; + int32_t codepoint = 0; if(dump("\"", 1, data)) return -1; diff --git a/src/hashtable_seed.c b/src/hashtable_seed.c index 8aed540..540358a 100644 --- a/src/hashtable_seed.c +++ b/src/hashtable_seed.c @@ -164,7 +164,7 @@ static int seed_from_timestamp_and_pid(uint32_t *seed) { } static uint32_t generate_seed() { - uint32_t seed; + uint32_t seed = 0; int done = 0; #if !defined(_WIN32) && defined(USE_URANDOM) diff --git a/src/value.c b/src/value.c index 861dce8..3f964a0 100644 --- a/src/value.c +++ b/src/value.c @@ -1044,8 +1044,6 @@ json_t *json_copy(json_t *json) default: return NULL; } - - return NULL; } json_t *json_deep_copy(const json_t *json) @@ -1073,6 +1071,4 @@ json_t *json_deep_copy(const json_t *json) default: return NULL; } - - return NULL; }