From 8020464444a93de930f7554c7da00a5a574cab77 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Fri, 16 Sep 2005 14:52:35 +0000 Subject: 2005-09-16 Jeremy Katz * isys/imount.c (doPwMount): Fix segfault when NFS mounting with no options. --- isys/imount.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'isys') diff --git a/isys/imount.c b/isys/imount.c index e615f70f4..00c92d278 100644 --- a/isys/imount.c +++ b/isys/imount.c @@ -44,9 +44,12 @@ int doPwMount(char * dev, char * where, char * fs, int options, void *data) { strcat(buf, dev); } else { #ifndef DISABLE_NETWORK - char * extra_opts = strdup(data); + char * extra_opts = NULL; int flags = 0; + if (data) + strdup(data); + buf = dev; /*logMessage("calling nfsmount(%s, %s, &flags, &extra_opts, &mount_opt)", buf, where);*/ -- cgit