From 81b7af724712a90e681ee85c55974ebbe35f4b50 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 27 Sep 1998 07:11:54 +0000 Subject: [PATCH] (sort_args): Fill extra space with NULL ptrs. --- src/emacs.c | 4 ++++ 1 file changed, 4 insertions(+) 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) argv[best + i + 1] = 0; } + /* If duplicate options were deleted, fill up extra space with null ptrs. */ + while (to < argc) + new[to++] = 0; + bcopy (new, argv, sizeof (char *) * argc); free (options); -- 2.39.2