diff src/dired.c @ 60900:e2f52fa7f394

(Ffile_attributes): Add a missing gcpro.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 24 Mar 2005 22:06:36 +0000
parents d1daa8bf79fd
children 8a54ce1fae6a 4da4a09e8b1b
line wrap: on
line diff
--- a/src/dired.c	Thu Mar 24 21:24:09 2005 +0000
+++ b/src/dired.c	Thu Mar 24 22:06:36 2005 +0000
@@ -906,6 +906,7 @@
 #endif
   char modes[10];
   Lisp_Object handler;
+  struct gcpro gcpro1;
 
   filename = Fexpand_file_name (filename, Qnil);
 
@@ -921,7 +922,9 @@
 	return call3 (handler, Qfile_attributes, filename, id_format);
     }
 
+  GCPRO1 (filename);
   encoded = ENCODE_FILE (filename);
+  UNGCPRO;
 
   if (lstat (SDATA (encoded), &s) < 0)
     return Qnil;