summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-09-20 02:14:09 +0200
committerGuillem Jover <guillem@debian.org>2014-10-06 02:08:02 +0200
commite9a73826b1a310ac34d2cfc1ab278e0f930f5dc6 (patch)
tree8e22952eba50964e72bb6a09ed9efd109aa6c420 /src
parenta1920c132369534dd18157dafa4758c44d555ddd (diff)
downloaddpkg-e9a73826b1a310ac34d2cfc1ab278e0f930f5dc6.tar.gz
dpkg: Use varbuf_end_str() instead of varbuf_add_char() with explicit '\0'
Diffstat (limited to 'src')
-rw-r--r--src/infodb-access.c2
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)