diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-06-20 22:26:41 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-06-20 22:26:41 -0400 |
commit | 20616aa76defb7a07971842861b7bed2c4049bd6 (patch) | |
tree | 4b3a1ec31097a319b2c6c2ce8f6a74db0592b456 /src | |
parent | 8a813368430e6773afbfd9c34a7da9454d4799ae (diff) |
Return if we fail to open root.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |