From 014edc20a3ec7223d9185dedb637c30fed7b25f5 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 28 Jul 2014 15:21:44 -0600 Subject: [PATCH] Avoid mixing declarations and code for non-C99 compilers. --- plugins/sudoers/match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/match.c b/plugins/sudoers/match.c index 6e3ede0da..c9b131e9b 100644 --- a/plugins/sudoers/match.c +++ b/plugins/sudoers/match.c @@ -782,9 +782,9 @@ command_matches_dir(const char *sudoers_dir, size_t dlen) bool hostname_matches(const char *shost, const char *lhost, const char *pattern) { - debug_decl(hostname_matches, SUDO_DEBUG_MATCH) const char *host; bool rc; + debug_decl(hostname_matches, SUDO_DEBUG_MATCH) host = strchr(pattern, '.') != NULL ? lhost : shost; if (has_meta(pattern)) {