From 20616aa76defb7a07971842861b7bed2c4049bd6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 20 Jun 2008 22:26:41 -0400 Subject: [PATCH] Return if we fail to open root. --- src/main.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/main.c b/src/main.c index 40e7674..914e8a8 100644 --- a/src/main.c +++ b/src/main.c @@ -674,6 +674,9 @@ command_install(int argc, const char *argv[]) } root = razor_root_open(install_root); + if (root == NULL) + return 1; + system = razor_root_get_system_set(root); upstream = razor_set_open(rawhide_repo_filename); trans = razor_transaction_create(system, upstream); -- 1.7.1