diff options
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c index eed584e..b43b360 100644 --- a/src/database.c +++ b/src/database.c @@ -476,9 +476,9 @@ int apk_db_open(struct apk_database *db, const char *root) free(db->root); return -1; } - - apk_db_add_repository(db, apk_repository); } + if (apk_repository != NULL) + apk_db_add_repository(db, apk_repository); return apk_db_read_config(db); } |