diff options
author | Guillaume <guillaume@manjaro.org> | 2024-09-28 08:10:46 +0000 |
---|---|---|
committer | Guillaume <guillaume@manjaro.org> | 2024-09-28 08:10:46 +0000 |
commit | a2d029388c7c206f5576456f91bfbea2dca98c96 (patch) | |
tree | 13d38d765e1fbaa932d8c00f43b98cd6503a9460 | |
parent | 8a60361949ec987b300588cc930b78db6611009c (diff) |
-rw-r--r-- | lib/libalpm/sandbox.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/sandbox.c b/lib/libalpm/sandbox.c index 1e96dc00..cdc01dc7 100644 --- a/lib/libalpm/sandbox.c +++ b/lib/libalpm/sandbox.c @@ -235,7 +235,9 @@ bool _alpm_sandbox_process_cb_download(alpm_handle_t *handle, int callback_pipe) ASSERT(read_from_pipe(callback_pipe, filename, filename_size) != -1, FREE(filename); return false); filename[filename_size] = '\0'; - handle->dlcb(handle->dlcb_ctx, filename, type, &cb_data); + if(handle->dlcb) { + handle->dlcb(handle->dlcb_ctx, filename, type, &cb_data); + } FREE(filename); return true; } |