diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-08-11 16:01:29 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-08-11 16:01:29 +0300 |
commit | 1011c4e3462ec1694af75d3a4d54730c7aa1e142 (patch) | |
tree | 3056d2b4b9b2fdf32186814c2e4aa47bc8bd5a41 /src | |
parent | 6dd59d781717bae02cba5c886afb29bfa22b33aa (diff) | |
download | apk-tools-1011c4e3462ec1694af75d3a4d54730c7aa1e142.tar.gz apk-tools-1011c4e3462ec1694af75d3a4d54730c7aa1e142.tar.bz2 apk-tools-1011c4e3462ec1694af75d3a4d54730c7aa1e142.tar.xz apk-tools-1011c4e3462ec1694af75d3a4d54730c7aa1e142.zip |
db: fix previous commit
Diffstat (limited to 'src')
-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 a277d90..a6669c3 100644 --- a/src/database.c +++ b/src/database.c @@ -1280,8 +1280,8 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t repository) struct apk_repository *repo; int r, targz = 1; - if (repository.ptr == NULL || *repository.ptr == '\0' - || *repository.ptr == '\n' || *repository.ptr == '#') + if (repository.ptr == NULL || repository.len == 0 || + *repository.ptr == '#') return 0; if (db->num_repos >= APK_MAX_REPOS) |