From 78784c81fe43132cfc15fbcdd693ec47178759eb Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 27 Dec 2004 04:51:53 +0000 Subject: [PATCH] (main): Allocagte filename by strdup if not specified. --- example/medit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/medit.c b/example/medit.c index dc9bea6..725ffdc 100644 --- a/example/medit.c +++ b/example/medit.c @@ -2476,7 +2476,7 @@ main (int argc, char **argv) } } if (! filename) - filename = "/dev/null"; + filename = strdup ("/dev/null"); mdatabase_dir = "."; /* Initialize the m17n library. */ -- 1.7.10.4