changeset 12614:1415c961bea6

(init_environment): Move alloca call out of function arg.
author Richard M. Stallman <rms@gnu.org>
date Thu, 20 Jul 1995 18:30:49 +0000
parents 1243b1f01079
children d5db61e1a4ee
files src/msdos.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/msdos.c	Thu Jul 20 17:54:10 1995 +0000
+++ b/src/msdos.c	Thu Jul 20 18:30:49 1995 +0000
@@ -693,7 +693,8 @@
 
   /* 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] != ':')