unpack: make sure the xucd callbacks don't get a dangling pointer.
If the current entry filename has been changed, the pointer must be updated to point to the updated string.
This commit is contained in:
parent
769a997afb
commit
c464874c1e
@ -439,6 +439,7 @@ unpack_archive(struct xbps_handle *xhp,
|
||||
break;
|
||||
} else {
|
||||
if (xhp->unpack_cb != NULL) {
|
||||
xucd.entry = entry_pname;
|
||||
xucd.entry_extract_count++;
|
||||
(*xhp->unpack_cb)(&xucd, xhp->unpack_cb_data);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user