From 0324decf93eba8f82b119b30207bc2208398ef54 Mon Sep 17 00:00:00 2001 From: ericm Date: Thu, 13 Nov 2003 12:06:04 +0000 Subject: [PATCH] opts could be NULL, cause segfault. --- lustre/utils/llmount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/utils/llmount.c b/lustre/utils/llmount.c index c4e7d9a..1f5475d 100644 --- a/lustre/utils/llmount.c +++ b/lustre/utils/llmount.c @@ -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; -- 1.8.3.1