From d73d717ecac42457f12a2d843454ecda3aa7b004 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 29 Dec 2015 23:10:44 +0100 Subject: fix compiler warnings in hurd/nfs and hurd/nfsd nfs: Fix compiler warnings. * nfs/ops.c (netfs_get_dirents): Initialize buf. * nfsd/nfsd.h: Define cache_handle_array union. * nfsd/cache.c: Use new cache_handle_array union. * nfds/ops.c: Likewise. --- nfs/ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nfs') diff --git a/nfs/ops.c b/nfs/ops.c index a4d6ac77..79cd3a64 100644 --- a/nfs/ops.c +++ b/nfs/ops.c @@ -1819,7 +1819,7 @@ netfs_get_dirents (struct iouser *cred, struct node *np, mach_msg_type_number_t *datacnt, vm_size_t bufsiz, int *amt) { - void *buf; + void *buf = NULL; size_t our_bufsiz, allocsize; void *bp; char *userdp; -- cgit v1.2.3