diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-10-11 16:52:03 -0400 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-10-12 09:05:30 +1000 |
commit | ff7c7426065f816ec3c6cd9c46d9ffbfbff80d71 (patch) | |
tree | 480bf8aa68b538ab9ede4e66229cc97455aad0c2 | |
parent | f461e3348ef3a9e1713fe04ccaa1b88dc0530946 (diff) | |
download | nfs-utils-ff7c7426065f816ec3c6cd9c46d9ffbfbff80d71.tar.gz nfs-utils-ff7c7426065f816ec3c6cd9c46d9ffbfbff80d71.tar.xz nfs-utils-ff7c7426065f816ec3c6cd9c46d9ffbfbff80d71.zip |
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 <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
-rw-r--r-- | utils/mountd/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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\"", |