summaryrefslogtreecommitdiff
path: root/src/querycmd.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2019-01-15 04:40:33 +0100
committerGuillem Jover <guillem@debian.org>2019-01-22 13:41:54 +0100
commitf94d12b62e0747791ece6400f31a15fddc3a2d5b (patch)
treed1f3c740d28e99199cd63d33d54c2a9f19a9df35 /src/querycmd.c
parent4b1b8a20f00a97b1e8e3e9e7ba0183e8f6f0059e (diff)
downloaddpkg-f94d12b62e0747791ece6400f31a15fddc3a2d5b.tar.gz
dpkg-query: Rename variable to avoid shadowing a local function
Warned-by: cppcheck
Diffstat (limited to 'src/querycmd.c')
-rw-r--r--src/querycmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/querycmd.c b/src/querycmd.c
index 173c4ad91..0dba74856 100644
--- a/src/querycmd.c
+++ b/src/querycmd.c
@@ -639,16 +639,16 @@ pkg_infodb_print_filetype(const char *filename, const char *filetype)
static void
control_path_file(struct pkginfo *pkg, const char *control_file)
{
- const char *control_path;
+ const char *control_pathname;
struct stat st;
- control_path = pkg_infodb_get_file(pkg, &pkg->installed, control_file);
- if (stat(control_path, &st) < 0)
+ control_pathname = pkg_infodb_get_file(pkg, &pkg->installed, control_file);
+ if (stat(control_pathname, &st) < 0)
return;
if (!S_ISREG(st.st_mode))
return;
- pkg_infodb_print_filename(control_path, control_file);
+ pkg_infodb_print_filename(control_pathname, control_file);
}
static int