Gitweb links: ...log http://git.netsurf-browser.org/netsurf.git/shortlog/188f6dd5c097aae905439e887aaa36213493b73d ...commit http://git.netsurf-browser.org/netsurf.git/commit/188f6dd5c097aae905439e887aaa36213493b73d ...tree http://git.netsurf-browser.org/netsurf.git/tree/188f6dd5c097aae905439e887aaa36213493b73d
The branch, master has been updated via 188f6dd5c097aae905439e887aaa36213493b73d (commit) from 7f8ea622695ac93137e550c439e7db3c677b8ed7 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commitdiff http://git.netsurf-browser.org/netsurf.git/commit/?id=188f6dd5c097aae905439e887aaa36213493b73d commit 188f6dd5c097aae905439e887aaa36213493b73d Author: Vincent Sanders <vi...@kyllikki.org> Commit: Vincent Sanders <vi...@kyllikki.org> Fix use of uninitialised code variable in error reporting diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index f26c2cd..83d70a7 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -938,12 +938,13 @@ fetch_curl_postdata_convert(CURL *chandle, { curl_mime *cmime; curl_mimepart *part; - CURLcode code; + CURLcode code = CURLE_OK; size_t value_len; cmime = curl_mime_init(chandle); if (cmime == NULL) { - goto convert_failed; + NSLOG(netsurf, WARNING, "postdata conversion failed to curl mime context"); + return NULL; } /* iterate post data */ @@ -1039,7 +1040,7 @@ fetch_curl_postdata_convert(CURL *chandle, return cmime; convert_failed: - NSLOG(netsurf, INFO, "postdata conversion failed with curl code: %d", code); + NSLOG(netsurf, WARNING, "postdata conversion failed with curl code: %d", code); curl_mime_free(cmime); return NULL; } ----------------------------------------------------------------------- Summary of changes: content/fetchers/curl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index f26c2cd..83d70a7 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -938,12 +938,13 @@ fetch_curl_postdata_convert(CURL *chandle, { curl_mime *cmime; curl_mimepart *part; - CURLcode code; + CURLcode code = CURLE_OK; size_t value_len; cmime = curl_mime_init(chandle); if (cmime == NULL) { - goto convert_failed; + NSLOG(netsurf, WARNING, "postdata conversion failed to curl mime context"); + return NULL; } /* iterate post data */ @@ -1039,7 +1040,7 @@ fetch_curl_postdata_convert(CURL *chandle, return cmime; convert_failed: - NSLOG(netsurf, INFO, "postdata conversion failed with curl code: %d", code); + NSLOG(netsurf, WARNING, "postdata conversion failed with curl code: %d", code); curl_mime_free(cmime); return NULL; } -- NetSurf Browser _______________________________________________ netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org