mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
added a debug log
This commit is contained in:
parent
0b4ab2c0a8
commit
79f4b5acf4
@ -46,6 +46,7 @@ pmhandle_t *handle_new()
|
|||||||
|
|
||||||
handle = (pmhandle_t *)malloc(sizeof(pmhandle_t));
|
handle = (pmhandle_t *)malloc(sizeof(pmhandle_t));
|
||||||
if(handle == NULL) {
|
if(handle == NULL) {
|
||||||
|
_alpm_log(PM_LOG_ERROR, "malloc failure: could not allocate %d bytes", sizeof(pmhandle_t));
|
||||||
RET_ERR(PM_ERR_MEMORY, NULL);
|
RET_ERR(PM_ERR_MEMORY, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user