Merge branch 'allan/initialise' into 'master'

Remove initialisation of unions

See merge request pacman/pacman!289
This commit is contained in:
Allan McRae 2025-08-02 14:52:37 +10:00
commit d7ca66ed7d
2 changed files with 2 additions and 2 deletions

View file

@ -1322,7 +1322,7 @@ int SYMEXPORT alpm_fetch_pkgurl(alpm_handle_t *handle, const alpm_list_t *urls,
char *temporary_cachedir = NULL; char *temporary_cachedir = NULL;
alpm_list_t *payloads = NULL; alpm_list_t *payloads = NULL;
const alpm_list_t *i; const alpm_list_t *i;
alpm_event_t event = {0}; alpm_event_t event;
CHECK_HANDLE(handle, return -1); CHECK_HANDLE(handle, return -1);
ASSERT(*fetched == NULL, RET_ERR(handle, ALPM_ERR_WRONG_ARGS, -1)); ASSERT(*fetched == NULL, RET_ERR(handle, ALPM_ERR_WRONG_ARGS, -1));

View file

@ -776,7 +776,7 @@ static int download_files(alpm_handle_t *handle)
char * temporary_cachedir = NULL; char * temporary_cachedir = NULL;
alpm_list_t *i, *files = NULL; alpm_list_t *i, *files = NULL;
int ret = 0; int ret = 0;
alpm_event_t event = {0}; alpm_event_t event;
alpm_list_t *payloads = NULL; alpm_list_t *payloads = NULL;
cachedir = _alpm_filecache_setup(handle); cachedir = _alpm_filecache_setup(handle);