summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-29 00:53:09 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-29 00:53:09 +0000
commit678b60017d38e2e9ab04f5c7f6e6fb2e605efeb5 (patch)
tree9cb69f8530e3194781ad2288e79a9044698ea917
parent45c2d7474281aed38ce299ef158e5598a38b6655 (diff)
downloademacs-678b60017d38e2e9ab04f5c7f6e6fb2e605efeb5.tar.gz
(sort_args): Check properly for `--'.
-rw-r--r--src/emacs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index bf654fe7612..59e25a82ad4 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1223,7 +1223,7 @@ sort_args (argc, argv)
/* If we have found "--", don't consider
any more arguments as options. */
- if (argv[from][1] == '-')
+ if (argv[from][1] == '-' && argv[from][2] == 0)
{
/* Leave the "--", and everything following it, at the end. */
for (; from < argc; from++)