From: Todd C. Miller Date: Fri, 30 Nov 2012 16:39:27 +0000 (-0500) Subject: Move debug_decl() in log_failure() to be after the variable X-Git-Tag: SUDO_1_8_7~1^2~302 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a1889a61ca59ace53542f1f20ce8cee2ce20888;p=sudo Move debug_decl() in log_failure() to be after the variable declarations for C89. --- diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c index f17938553..fc2838035 100644 --- a/plugins/sudoers/logging.c +++ b/plugins/sudoers/logging.c @@ -315,8 +315,8 @@ log_denial(int status, bool inform_user) void log_failure(int status, int flags) { - debug_decl(log_failure, SUDO_DEBUG_LOGGING) bool inform_user = true; + debug_decl(log_failure, SUDO_DEBUG_LOGGING) /* The user doesn't always get to see the log message (path info). */ if (!ISSET(status, FLAG_NO_USER | FLAG_NO_HOST) && def_path_info &&