From: Chuck Lever Date: Thu, 11 Oct 2007 20:52:03 +0000 (-0400) Subject: mountd: address a minor compiler warning X-Git-Tag: nfs-utils-1-1-1~11 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=ff7c7426065f816ec3c6cd9c46d9ffbfbff80d71;p=nfs-utils.git mountd: address a minor compiler warning 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 --- 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\"",