From 0925e7b0852cf1214b2f7de76e5547c7b3312644 Mon Sep 17 00:00:00 2001
From: Paul Broadhead <[email protected]>
Date: Mon, 2 Feb 2015 17:20:47 +0000
Subject: [PATCH] Fix segfault if --libcurl output file cannot be created.

---
 src/tool_easysrc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tool_easysrc.c b/src/tool_easysrc.c
index 3db27bb..976b5ad 100644
--- a/src/tool_easysrc.c
+++ b/src/tool_easysrc.c
@@ -182,7 +182,7 @@ void dumpeasysrc(struct GlobalConfig *config)
     else
       out = stdout;
     if(!out)
-      warnf(config->current, "Failed to open %s to write libcurl code!\n", o);
+      warnf(config->last, "Failed to open %s to write libcurl code!\n", o);
     else {
       int i;
       const char *c;
-- 
2.1.0

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to