diff options
| author | Richard M. Stallman | 1997-07-29 00:53:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-29 00:53:09 +0000 |
| commit | 249443b6915d16b12800ecbd0f1e1eba4fedcb00 (patch) | |
| tree | 7ec5a77bcfa42b2b1d5d83a58a3e57334a2f4ffc /src | |
| parent | 24902ecd1df6942fb600a5795719b9a92a2e6c00 (diff) | |
| download | emacs-249443b6915d16b12800ecbd0f1e1eba4fedcb00.tar.gz emacs-249443b6915d16b12800ecbd0f1e1eba4fedcb00.zip | |
(sort_args): Check properly for `--'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 2 |
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) | |||
| 1223 | 1223 | ||
| 1224 | /* If we have found "--", don't consider | 1224 | /* If we have found "--", don't consider |
| 1225 | any more arguments as options. */ | 1225 | any more arguments as options. */ |
| 1226 | if (argv[from][1] == '-') | 1226 | if (argv[from][1] == '-' && argv[from][2] == 0) |
| 1227 | { | 1227 | { |
| 1228 | /* Leave the "--", and everything following it, at the end. */ | 1228 | /* Leave the "--", and everything following it, at the end. */ |
| 1229 | for (; from < argc; from++) | 1229 | for (; from < argc; from++) |