From 79f4b5acf407e6fdf054de323e11c9b5a4f97580 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Thu, 2 Mar 2006 19:00:57 +0000 Subject: added a debug log --- lib/libalpm/handle.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm') diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index 28f07507..5300fa13 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -46,6 +46,7 @@ pmhandle_t *handle_new() handle = (pmhandle_t *)malloc(sizeof(pmhandle_t)); if(handle == NULL) { + _alpm_log(PM_LOG_ERROR, "malloc failure: could not allocate %d bytes", sizeof(pmhandle_t)); RET_ERR(PM_ERR_MEMORY, NULL); } -- cgit v1.2.3-70-g09d2