Commit 81b7af72 authored by Richard M. Stallman's avatar Richard M. Stallman

(sort_args): Fill extra space with NULL ptrs.

parent 4224cb62
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment