diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-12-18 12:36:50 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-12-18 12:36:50 -0800 |
commit | 518c40a27ce7c4774c9e488639fb605a38d4f599 (patch) | |
tree | be09836eee1085ad01323ef6ee62755ddf2b4492 /src/callproc.c | |
parent | 1d1c55dcdfcb83af04cc09d8b1c9f15f31ba2fbe (diff) | |
download | emacs-518c40a27ce7c4774c9e488639fb605a38d4f599.tar.gz |
Minor fixes for recent openp changes.
* lisp.h (GCPRO7): New macro.
* lread.c (openp): Use bool for boolean; all callers changed.
Protect save_string from GC. Don't assume that file descriptors
are nonzero. Redo save_mtime comparison to avoid bogus GCC
warning about uninitialized variable.
Diffstat (limited to 'src/callproc.c')
-rw-r--r-- | src/callproc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c index 0d30fe549ea..3b383a7fbef 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -465,7 +465,8 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd, int ok; GCPRO3 (buffer, current_dir, error_file); - ok = openp (Vexec_path, args[0], Vexec_suffixes, &path, make_number (X_OK), 0); + ok = openp (Vexec_path, args[0], Vexec_suffixes, &path, + make_number (X_OK), false); UNGCPRO; if (ok < 0) report_file_error ("Searching for program", args[0]); |