aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-14 18:37:47 +0000
committerRichard M. Stallman1993-08-14 18:37:47 +0000
commite443f843a444ef7d18b8b0c8dcbbbba83be81794 (patch)
tree479ea748f7440ab4a18a827210babc458e7042d6 /src
parent8027e2ad909683ea7c5de04186ee8a423fd84228 (diff)
downloademacs-e443f843a444ef7d18b8b0c8dcbbbba83be81794.tar.gz
emacs-e443f843a444ef7d18b8b0c8dcbbbba83be81794.zip
(init_cmdargs): Check openp result for 1, not != 0.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index a7b184d8b69..7e727ae9a15 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -171,7 +171,7 @@ init_cmdargs (argc, argv, skip_args)
171 Lisp_Object found; 171 Lisp_Object found;
172 int yes = openp (Vexec_path, Vinvocation_name, 172 int yes = openp (Vexec_path, Vinvocation_name,
173 EXEC_SUFFIXES, &found, 1); 173 EXEC_SUFFIXES, &found, 1);
174 if (yes) 174 if (yes == 1)
175 Vinvocation_directory = Ffile_name_directory (found); 175 Vinvocation_directory = Ffile_name_directory (found);
176 } 176 }
177 177