summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c
index 0f40ca5..a277d90 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1281,7 +1281,7 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t repository)
int r, targz = 1;
if (repository.ptr == NULL || *repository.ptr == '\0'
- || *repository.ptr == '#')
+ || *repository.ptr == '\n' || *repository.ptr == '#')
return 0;
if (db->num_repos >= APK_MAX_REPOS)