From f3e583affdeeb85706dcb3c1a971028b536bc667 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= <francois.andriot@free.fr>
Date: Sun, 26 Oct 2014 12:14:34 +0100
Subject: Fix potential crash due to invalid return value
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: François Andriot <francois.andriot@free.fr>
---
 src/get-carddav-report.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/get-carddav-report.c b/src/get-carddav-report.c
index 971f6d1..b44fd2c 100644
--- a/src/get-carddav-report.c
+++ b/src/get-carddav-report.c
@@ -86,7 +86,7 @@ static gchar* carddav_dirlist(carddav_settings* settings, carddav_error* error)
 		error->str = g_strdup("Could not initialize libcurl");
 		g_free(settings->file);
 		settings->file = NULL;
-		return TRUE;
+		return NULL;
 	}
 
 	http_header = curl_slist_append(http_header,
-- 
cgit v1.2.1