Fix potential crash due to invalid return value

Signed-off-by: François Andriot <francois.andriot@free.fr>
pull/1/head r14.0.0
François Andriot 10 years ago committed by Slávek Banko
parent 0bd1b49697
commit f3e583affd

@ -86,7 +86,7 @@ static gchar* carddav_dirlist(carddav_settings* settings, carddav_error* error)
error->str = g_strdup("Could not initialize libcurl"); error->str = g_strdup("Could not initialize libcurl");
g_free(settings->file); g_free(settings->file);
settings->file = NULL; settings->file = NULL;
return TRUE; return NULL;
} }
http_header = curl_slist_append(http_header, http_header = curl_slist_append(http_header,

Loading…
Cancel
Save