]> git.eshelyaron.com Git - emacs.git/commitdiff
(sort_args): Fill extra space with NULL ptrs.
authorRichard M. Stallman <rms@gnu.org>
Sun, 27 Sep 1998 07:11:54 +0000 (07:11 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 27 Sep 1998 07:11:54 +0000 (07:11 +0000)
src/emacs.c

index 0e46953d1839952ed2cfc8fb46587970b0ac3c83..f57472d01e7c22fe691fc0ac0a09af9cfecd7edb 100644 (file)
@@ -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);