[librest] tests: GError pointers must be initialized



commit 431f292409ca5cd5f137b5a2164b317d609fb720
Author: Alexandre Rostovtsev <tetromino gentoo org>
Date:   Thu Mar 5 13:05:21 2015 -0500

    tests: GError pointers must be initialized
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745694

 tests/custom-serialize.c |    2 +-
 tests/proxy-continuous.c |    2 +-
 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]