diff src/callproc.c @ 446:1ccc32a20af4 r21-2-38

Import from CVS: tag r21-2-38
author cvs
date Mon, 13 Aug 2007 11:37:21 +0200
parents 576fb035e263
children 0784d089fdc9
line wrap: on
line diff
--- a/src/callproc.c	Mon Aug 13 11:36:20 2007 +0200
+++ b/src/callproc.c	Mon Aug 13 11:37:21 2007 +0200
@@ -221,8 +221,8 @@
        buffer's current directory.  We can't just have the child check
        for an error when it does the chdir, since it's in a vfork.  */
 
+    current_dir = current_buffer->directory;
     NGCPRO2 (current_dir, path);   /* Caller gcprotects args[] */
-    current_dir = current_buffer->directory;
     current_dir = Funhandled_file_name_directory (current_dir);
     current_dir = expand_and_dir_to_file (current_dir, Qnil);
 #if 0