summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2015-03-05 13:05:21 -0500
committerChristophe Fergeau <cfergeau@redhat.com>2015-03-16 18:10:18 +0100
commit431f292409ca5cd5f137b5a2164b317d609fb720 (patch)
treef0fe704ec772c01ff78cbe2235818ddeb404f931
parent9fa3f055e43ec07e0c0198647d3454a585c32db7 (diff)
downloadlibrest-431f292409ca5cd5f137b5a2164b317d609fb720.tar.gz
tests: GError pointers must be initialized
https://bugzilla.gnome.org/show_bug.cgi?id=745694
-rw-r--r--tests/custom-serialize.c2
-rw-r--r--tests/proxy-continuous.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/custom-serialize.c b/tests/custom-serialize.c
index b50405d..f683941 100644
--- a/tests/custom-serialize.c
+++ b/tests/custom-serialize.c
@@ -115,7 +115,7 @@ main (int argc, char **argv)
RestProxy *proxy;
RestProxyCall *call;
char *url;
- GError *error;
+ GError *error = NULL;
#if !GLIB_CHECK_VERSION (2, 36, 0)
g_type_init ();
diff --git a/tests/proxy-continuous.c b/tests/proxy-continuous.c
index 9395cd2..22ad0f7 100644
--- a/tests/proxy-continuous.c
+++ b/tests/proxy-continuous.c
@@ -139,7 +139,7 @@ static void
stream_test (RestProxy *proxy)
{
RestProxyCall *call;
- GError *error;
+ GError *error = NULL;
client_count = 1;