db: ignore empty lines in /etc/apk/repositories

fixes #127
cute-signatures
Natanael Copa 2009-08-11 09:20:18 +00:00
parent dea5907964
commit 6dd59d7817
1 changed files with 1 additions and 1 deletions

View File

@ -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)