pacman-conf.c: exit if cannot create config data structure

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Ivy Foster 2018-02-15 16:20:40 -06:00 committed by Allan McRae
parent 2dd8b88d5c
commit 0e260f9335

View file

@ -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;