From 3e176019323a4cfd61dfa04ab72096506c4395a5 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 12 Feb 2026 09:45:33 -0500 Subject: Error message pointer must be valid --- src/lib/core/strlist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/core/strlist.c b/src/lib/core/strlist.c index 5655da9..a0db5f3 100644 --- a/src/lib/core/strlist.c +++ b/src/lib/core/strlist.c @@ -92,8 +92,11 @@ int strlist_append_file(struct StrList *pStrList, char *_path, ReaderFn *readerF } close(fd); filename = strdup(tempfile); - long http_code = download(path, filename, NULL); + char *errmsg = NULL; + long http_code = download(path, filename, &errmsg); if (HTTP_ERROR(http_code)) { + SYSERROR("%s: %s", errmsg, filename); + guard_free(errmsg); retval = -1; goto fatal; } -- cgit