blob: edc8b7075905cf59c25eb46664eda28c51224967 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
From 1bd0dc67914b7398acf60aaa42aa03bb4d36b839 Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@gentoo.org>
Date: Thu, 5 Mar 2015 13:05:21 -0500
Subject: [PATCH] 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;
--
2.3.1
|