From ff7c7426065f816ec3c6cd9c46d9ffbfbff80d71 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Thu, 11 Oct 2007 16:52:03 -0400 Subject: [PATCH] mountd: address a minor compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit auth.c: In function ‘auth_authenticate’: auth.c:190: warning: ‘error’ may be used uninitialized in this function "error" is used as an output parameter, but the compiler has no way of knowing that. Signed-off-by: Chuck Lever Signed-off-by: Neil Brown --- utils/mountd/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mountd/auth.c b/utils/mountd/auth.c index 3c9a89a..2bb708f 100644 --- a/utils/mountd/auth.c +++ b/utils/mountd/auth.c @@ -187,7 +187,7 @@ auth_authenticate(char *what, struct sockaddr_in *caller, char *path) char *p = NULL; struct hostent *hp = NULL; struct in_addr addr = caller->sin_addr; - enum auth_error error; + enum auth_error error = bad_path; if (path [0] != '/') { xlog(L_WARNING, "bad path in %s request from %s: \"%s\"", -- 2.39.2