diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dired.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dired.c b/src/dired.c index ab6d0569107..62bf4beb384 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -906,6 +906,7 @@ Elements of the attribute list are: | |||
| 906 | #endif | 906 | #endif |
| 907 | char modes[10]; | 907 | char modes[10]; |
| 908 | Lisp_Object handler; | 908 | Lisp_Object handler; |
| 909 | struct gcpro gcpro1; | ||
| 909 | 910 | ||
| 910 | filename = Fexpand_file_name (filename, Qnil); | 911 | filename = Fexpand_file_name (filename, Qnil); |
| 911 | 912 | ||
| @@ -921,7 +922,9 @@ Elements of the attribute list are: | |||
| 921 | return call3 (handler, Qfile_attributes, filename, id_format); | 922 | return call3 (handler, Qfile_attributes, filename, id_format); |
| 922 | } | 923 | } |
| 923 | 924 | ||
| 925 | GCPRO1 (filename); | ||
| 924 | encoded = ENCODE_FILE (filename); | 926 | encoded = ENCODE_FILE (filename); |
| 927 | UNGCPRO; | ||
| 925 | 928 | ||
| 926 | if (lstat (SDATA (encoded), &s) < 0) | 929 | if (lstat (SDATA (encoded), &s) < 0) |
| 927 | return Qnil; | 930 | return Qnil; |