summaryrefslogtreecommitdiff
path: root/src/pacman/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r--src/pacman/conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 2bc69820..21256d77 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -32,8 +32,9 @@ config_t *config_new(void)
{
config_t *newconfig = calloc(1, sizeof(config_t));
if(!newconfig) {
- fprintf(stderr, "malloc failure: could not allocate %d bytes\n",
+ fprintf(stderr, "malloc failure: could not allocate %zd bytes\n",
sizeof(config_t));
+ return(NULL);
}
/* defaults which may get overridden later */
newconfig->op = PM_OP_MAIN;