X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnfsmount.c;h=776ef6440a78acf67effed85e0a3789a0dccdf6a;hp=4049e662ca2d81c16f6049b27b16e058a51fc682;hb=e8a29cc56f3bf9b550b0f4f4876f23ca379d3e14;hpb=25001e18ff31933d1f40b510da969a8cee317310 diff --git a/utils/mount/nfsmount.c b/utils/mount/nfsmount.c index 4049e66..776ef64 100644 --- a/utils/mount/nfsmount.c +++ b/utils/mount/nfsmount.c @@ -293,14 +293,14 @@ int nfs_gethostbyname(const char *hostname, struct sockaddr_in *saddr) * instead of reserve ports since reserve ports * are not needed for pmap requests. */ -static u_short +u_short getport( struct sockaddr_in *saddr, u_long prog, u_long vers, u_int prot) { - u_short port; + u_short port = 0; int socket; CLIENT *clnt = NULL; struct pmap parms;