mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-15 13:55:09 -05:00
Dan McGee <dpmcgee@gmail.com>
* fix "warning: dereferencing type-punned pointer will break strict-aliasing rules"
This commit is contained in:
parent
f6a76dac12
commit
46e26ac5c8
@ -253,9 +253,9 @@ int _alpm_add_prepare(pmtrans_t *trans, pmdb_t *db, pmlist_t **data)
|
||||
/* Attempt to resolve conflicts */
|
||||
QUESTION(trans, PM_TRANS_CONV_CONFLICT_PKG, miss->target, miss->depend.name, NULL, &skip_this);
|
||||
if(skip_this) {
|
||||
pmpkg_t *pkg = NULL;
|
||||
lp = _alpm_list_remove(lp, (void *)miss->depend.name, name_cmp, (void **)&pkg);
|
||||
FREEPKG(pkg);
|
||||
pmpkg_t **pkg = NULL;
|
||||
lp = _alpm_list_remove(lp, (void *)miss->depend.name, name_cmp, (void **)pkg);
|
||||
FREEPKG(*pkg);
|
||||
}
|
||||
}
|
||||
if(lp != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user