From: Richard M. Stallman Date: Thu, 20 Jul 1995 18:30:49 +0000 (+0000) Subject: (init_environment): Move alloca call out of function arg. X-Git-Tag: emacs-19.34~3245 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=872e2c822b70d61a5aa3ce9a5074da829c2818b5;p=emacs.git (init_environment): Move alloca call out of function arg. --- diff --git a/src/msdos.c b/src/msdos.c index 83c644f2a5d..4adb6408fed 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -693,7 +693,8 @@ init_environment (argc, argv, skip_args) /* Find our root from argv[0]. Assuming argv[0] is, say, "c:/emacs/bin/emacs.exe" our root will be "c:/emacs". */ - _fixpath (argv[0], root = alloca (MAXPATHLEN + 20)); + root = alloca (MAXPATHLEN + 20); + _fixpath (argv[0], root); strlwr (root); len = strlen (root); while (len > 0 && root[len] != '/' && root[len] != ':')