From dbcad5eb1a58e0ca8fb801bc8183150400f11c8a Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Wed, 14 Oct 2020 18:08:48 +0200 Subject: Remove unused variables Fixes clang-analyzer warnings: "Although the value stored to 'xxxxx' is used in the enclosing expression, the value is never actually read from 'xxxxx'" --- src/faudit/dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/faudit') diff --git a/src/faudit/dbus.c b/src/faudit/dbus.c index beaa5ac46..2a3c282d7 100644 --- a/src/faudit/dbus.c +++ b/src/faudit/dbus.c @@ -91,7 +91,7 @@ static char *test_dbus_env(char *env_var_name) { if (!found) errExit("strdup"); } - else if ((sockfile = strstr(bus, "tcp:host=")) != NULL) + else if (strstr(bus, "tcp:host=") != NULL) printf("UGLY: %s bus configured for TCP communication.\n", env_var_name); else printf("GOOD: cannot find a %s D-Bus socket\n", env_var_name); -- cgit v1.2.3-70-g09d2