summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-13 09:55:32 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-13 09:55:52 -0500
commitf04e95ba6b861fc7d00e16d3d912a01aa7d286de (patch)
tree31e0b055aa9410d6128195b8684ed5a1f0b12e85 /src
parent5f9cfd4c3877fdc68618faf9ae5efb5948e002b6 (diff)
sysctl: fix uninitalized memory access in error path
src/sysctl/sysctl.c: In function ‘parse_file’: src/sysctl/sysctl.c:172:41: warning: ‘property’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Diffstat (limited to 'src')
-rw-r--r--src/sysctl/sysctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
index f59a858323..a8cbb5a326 100644
--- a/src/sysctl/sysctl.c
+++ b/src/sysctl/sysctl.c
@@ -169,7 +169,8 @@ static int parse_file(Hashmap *sysctl_options, const char *path, bool ignore_eno
existing = hashmap_get(sysctl_options, p);
if (existing) {
if (!streq(value, existing))
- log_warning("Two ore more conflicting assignments of %s, ignoring.", property);
+ log_warning("Duplicate assignment of %s in file '%s', ignoring.",
+ p, path);
continue;
}