From: handa Date: Mon, 27 Dec 2004 04:51:53 +0000 (+0000) Subject: (main): Allocagte filename by strdup if not specified. X-Git-Tag: REL-1-2-0~13 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78784c81fe43132cfc15fbcdd693ec47178759eb;p=m17n%2Fm17n-lib.git (main): Allocagte filename by strdup if not specified. --- 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. */