diff options
-rw-r--r-- | src/infodb-access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/infodb-access.c b/src/infodb-access.c index f8289ea4d..2d58576a7 100644 --- a/src/infodb-access.c +++ b/src/infodb-access.c @@ -75,8 +75,8 @@ pkg_infodb_foreach(struct pkginfo *pkg, struct pkgbin *pkgbin, varbuf_add_str(&db_path, pkg_infodb_get_dir()); varbuf_add_char(&db_path, '/'); + varbuf_end_str(&db_path); db_path_len = db_path.used; - varbuf_add_char(&db_path, '\0'); db_dir = opendir(db_path.buf); if (!db_dir) |