From eac8e8c6de6347999f6b2115f9c38df31f8d35b1 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 19 Dec 2014 03:00:56 +0100 Subject: import: dck - fix curl error handling --- src/import/import-dck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/import') diff --git a/src/import/import-dck.c b/src/import/import-dck.c index 7c83ff722b..adb0c90175 100644 --- a/src/import/import-dck.c +++ b/src/import/import-dck.c @@ -715,7 +715,7 @@ static void dck_import_curl_on_finished(CurlGlue *g, CURL *curl, CURLcode result job->done = true; if (result != CURLE_OK) { - log_error("Transfer failed: %s", curl_easy_strerror(code)); + log_error("Transfer failed: %s", curl_easy_strerror(result)); r = -EIO; goto fail; } -- cgit v1.2.3-54-g00ecf