Skip to content

Commit

Permalink
nfsd warning fix
Browse files Browse the repository at this point in the history
fs/nfsd/nfsctl.c: In function 'write_filehandle':
fs/nfsd/nfsctl.c:301: warning: 'maxsize' may be used uninitialized in this function

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Acked-by:  Neil Brown <neilb@suse.de>
  • Loading branch information
Andrew Morton authored and J. Bruce Fields committed Oct 9, 2007
1 parent dd4877b commit 246d95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
* qword quoting is used, so filehandle will be \x....
*/
char *dname, *path;
int maxsize;
int uninitialized_var(maxsize);
char *mesg = buf;
int len;
struct auth_domain *dom;
Expand Down

0 comments on commit 246d95b

Please sign in to comment.