summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-01 14:10:23 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-01 14:10:23 +0000
commitaaad91acd22b6204c97690a032e5c623f57376cc (patch)
tree46bdae9b0dca5e1f9a247eb8897573750fea59e6
parent669d5032383c22014233fe0732a5485494b1b469 (diff)
-null out ptrs on init
-rw-r--r--po/POTFILES.in2
-rw-r--r--src/json/json_helper.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 103ae8c47..8921b0684 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -54,6 +54,8 @@ src/conversation/conversation_api.c
src/conversation/conversation_api_call.c
src/conversation/gnunet-conversation.c
src/conversation/gnunet-conversation-test.c
+src/conversation/gnunet_gst.c
+src/conversation/gnunet_gst_test.c
src/conversation/gnunet-helper-audio-playback.c
src/conversation/gnunet-helper-audio-playback-gst.c
src/conversation/gnunet-helper-audio-record.c
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index 7265dfa66..dca2106aa 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -244,6 +244,7 @@ GNUNET_JSON_spec_string (const char *name,
.ptr_size = 0,
.size_ptr = NULL
};
+ *strptr = NULL;
return ret;
}
@@ -283,6 +284,7 @@ clean_object (void *cls,
struct GNUNET_JSON_Specification *spec)
{
json_t **ptr = (json_t **) spec->ptr;
+
if (NULL != *ptr)
{
json_decref (*ptr);
@@ -310,6 +312,7 @@ GNUNET_JSON_spec_json (const char *name,
.ptr_size = 0,
.size_ptr = NULL
};
+ *jsonp = NULL;
return ret;
}
@@ -765,6 +768,7 @@ GNUNET_JSON_spec_rsa_public_key (const char *name,
.ptr_size = 0,
.size_ptr = NULL
};
+ *pk = NULL;
return ret;
}
@@ -857,6 +861,7 @@ GNUNET_JSON_spec_rsa_signature (const char *name,
.ptr_size = 0,
.size_ptr = NULL
};
+ *sig = NULL;
return ret;
}