summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-11 09:20:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-11 09:22:12 +0000
commit6dd59d781717bae02cba5c886afb29bfa22b33aa (patch)
tree5fdcbe2b410a6e46f03bad192a1db58540f1e55c /src/database.c
parentdea5907964c1b77100a3bfc99f1e61a01e4d6ad3 (diff)
downloadapk-tools-6dd59d781717bae02cba5c886afb29bfa22b33aa.tar.gz
apk-tools-6dd59d781717bae02cba5c886afb29bfa22b33aa.tar.bz2
apk-tools-6dd59d781717bae02cba5c886afb29bfa22b33aa.tar.xz
apk-tools-6dd59d781717bae02cba5c886afb29bfa22b33aa.zip
db: ignore empty lines in /etc/apk/repositories
fixes #127
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)