index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Ivy Foster <iff@escondida.tk> | 2018-02-15 16:20:40 -0600 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-03-14 12:16:58 +1000 |
commit | 0e260f9335546d5834eb3e1d37cd23bc72765162 (patch) | |
tree | 914dc3bb74cc14f5f2d8df5759073b06ad55024e /src | |
parent | 2dd8b88d5cbb04ccab528cdd7b6b4db04c514748 (diff) |
-rw-r--r-- | src/pacman/pacman-conf.c | 5 |
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; |