From 292c35d97edb6eca5f7af7aae31488cca2c2ca6f Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sat, 23 Jun 2018 16:40:27 +1000 Subject: [PATCH] pppd: Fix compile warning due to comparing pointer to NUL character Evidently this means to check for arg pointing to an empty string, not arg being NULL, since the ensuing error talks about the variable name being missing. Signed-off-by: Paul Mackerras --- pppd/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pppd/options.c b/pppd/options.c index 482dce6..5db580a 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -1753,7 +1753,7 @@ user_unsetenv(argv) option_error("unexpected = in name: %s", arg); return 0; } - if (arg == '\0') { + if (*arg == '\0') { option_error("missing variable name for unset"); return 0; } -- 2.39.2