db: fix previous commit
parent
6dd59d7817
commit
1011c4e346
|
@ -1280,8 +1280,8 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t repository)
|
||||||
struct apk_repository *repo;
|
struct apk_repository *repo;
|
||||||
int r, targz = 1;
|
int r, targz = 1;
|
||||||
|
|
||||||
if (repository.ptr == NULL || *repository.ptr == '\0'
|
if (repository.ptr == NULL || repository.len == 0 ||
|
||||||
|| *repository.ptr == '\n' || *repository.ptr == '#')
|
*repository.ptr == '#')
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (db->num_repos >= APK_MAX_REPOS)
|
if (db->num_repos >= APK_MAX_REPOS)
|
||||||
|
|
Loading…
Reference in New Issue