diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-02-12 09:45:33 -0500 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-02-12 09:45:33 -0500 |
| commit | 3e176019323a4cfd61dfa04ab72096506c4395a5 (patch) | |
| tree | 35ffc947cb60962bc4c95be1e2520b8226372908 | |
| parent | 835903affdbe8b807fabfa8b991cd02ff4ba547d (diff) | |
| download | stasis-3e176019323a4cfd61dfa04ab72096506c4395a5.tar.gz | |
Error message pointer must be valid
| -rw-r--r-- | src/lib/core/strlist.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |
