From: Richard M. Stallman Date: Sun, 27 Sep 1998 07:11:54 +0000 (+0000) Subject: (sort_args): Fill extra space with NULL ptrs. X-Git-Tag: emacs-20.4~1622 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=81b7af724712a90e681ee85c55974ebbe35f4b50;p=emacs.git (sort_args): Fill extra space with NULL ptrs. --- 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);