diff options
| author | Richard M. Stallman | 1998-09-27 07:11:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-09-27 07:11:54 +0000 |
| commit | 81b7af724712a90e681ee85c55974ebbe35f4b50 (patch) | |
| tree | 0de7e2052d3d7f57e62944d155c4aaf6973a4e62 /src | |
| parent | 4224cb6213cfd1b6e36dcd8237ffada91bf9dbdb (diff) | |
| download | emacs-81b7af724712a90e681ee85c55974ebbe35f4b50.tar.gz emacs-81b7af724712a90e681ee85c55974ebbe35f4b50.zip | |
(sort_args): Fill extra space with NULL ptrs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index 0e46953d183..f57472d01e7 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1541,6 +1541,10 @@ sort_args (argc, argv) | |||
| 1541 | argv[best + i + 1] = 0; | 1541 | argv[best + i + 1] = 0; |
| 1542 | } | 1542 | } |
| 1543 | 1543 | ||
| 1544 | /* If duplicate options were deleted, fill up extra space with null ptrs. */ | ||
| 1545 | while (to < argc) | ||
| 1546 | new[to++] = 0; | ||
| 1547 | |||
| 1544 | bcopy (new, argv, sizeof (char *) * argc); | 1548 | bcopy (new, argv, sizeof (char *) * argc); |
| 1545 | 1549 | ||
| 1546 | free (options); | 1550 | free (options); |