aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-09-27 07:11:54 +0000
committerRichard M. Stallman1998-09-27 07:11:54 +0000
commit81b7af724712a90e681ee85c55974ebbe35f4b50 (patch)
tree0de7e2052d3d7f57e62944d155c4aaf6973a4e62 /src
parent4224cb6213cfd1b6e36dcd8237ffada91bf9dbdb (diff)
downloademacs-81b7af724712a90e681ee85c55974ebbe35f4b50.tar.gz
emacs-81b7af724712a90e681ee85c55974ebbe35f4b50.zip
(sort_args): Fill extra space with NULL ptrs.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c4
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);