summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pacman/pacman-conf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pacman/pacman-conf.c b/src/pacman/pacman-conf.c
index ab73d896..4ffa24a3 100644
--- a/src/pacman/pacman-conf.c
+++ b/src/pacman/pacman-conf.c
@@ -400,7 +400,10 @@ int main(int argc, char **argv)
{
int ret = 0;
- config = config_new();
+ if(!(config = config_new())) {
+ /* config_new prints the appropriate error message */
+ return 1;
+ }
parse_opts(argc, argv);
if(!config) {
ret = 1;