Whamcloud - gitweb
- don't crash if there are no options
authorrread <rread>
Thu, 13 Nov 2003 19:22:32 +0000 (19:22 +0000)
committerrread <rread>
Thu, 13 Nov 2003 19:22:32 +0000 (19:22 +0000)
lustre/utils/llmount.c

index 1f5475d..320ced4 100644 (file)
@@ -74,7 +74,7 @@ parse_options(char * options, struct lustre_mount_data *lmd)
         int val;
         char *opt;
         char * opteq;
-
+        
         /* parsing ideas here taken from util-linux/mount/nfsmount.c */
         for (opt = strtok(options, ","); opt; opt = strtok(NULL, ",")) {
                 if ((opteq = strchr(opt, '='))) {
@@ -218,7 +218,7 @@ main(int argc, char * const argv[])
 {
         char * source = argv[1];
         char * target = argv[2];
-        char * options = NULL;
+        char * options = "";
         int opt;
         int i;
         struct lustre_mount_data lmd;