(main): Allocagte filename by strdup if not specified.
authorhanda <handa>
Mon, 27 Dec 2004 04:51:53 +0000 (04:51 +0000)
committerhanda <handa>
Mon, 27 Dec 2004 04:51:53 +0000 (04:51 +0000)
example/medit.c

index dc9bea6..725ffdc 100644 (file)
@@ -2476,7 +2476,7 @@ main (int argc, char **argv)
        }
     }
   if (! filename)
-    filename = "/dev/null";
+    filename = strdup ("/dev/null");
 
   mdatabase_dir = ".";
   /* Initialize the m17n library.  */