Whamcloud - gitweb
opts could be NULL, cause segfault.
authorericm <ericm>
Thu, 13 Nov 2003 12:06:04 +0000 (12:06 +0000)
committerericm <ericm>
Thu, 13 Nov 2003 12:06:04 +0000 (12:06 +0000)
lustre/utils/llmount.c

index c4e7d9a..1f5475d 100644 (file)
@@ -47,7 +47,7 @@ update_mtab_entry(char *spec, char *node, char *type, char *opts,
         mnt.mnt_fsname = spec;
         mnt.mnt_dir = node;
         mnt.mnt_type = type;
-        mnt.mnt_opts = opts;
+        mnt.mnt_opts = opts ? opts : "";
         mnt.mnt_freq = freq;
         mnt.mnt_passno = pass;