summaryrefslogtreecommitdiff
path: root/nfs/ops.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2015-12-29 23:10:44 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-12-29 23:17:16 +0100
commitd73d717ecac42457f12a2d843454ecda3aa7b004 (patch)
tree2e023dd0c558be020b9dda9098977b9f4d49fe28 /nfs/ops.c
parent8c49801c8f7e3f800cabedf8fca8ccec3cf35a22 (diff)
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.
Diffstat (limited to 'nfs/ops.c')
-rw-r--r--nfs/ops.c2
1 files changed, 1 insertions, 1 deletions
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;