diff options
Diffstat (limited to 'test-skeleton.c')
-rw-r--r-- | test-skeleton.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test-skeleton.c b/test-skeleton.c index db04b11e63..e4cd95702d 100644 --- a/test-skeleton.c +++ b/test-skeleton.c @@ -166,6 +166,10 @@ main (int argc, char *argv[]) /* make sure temporary files are deleted. */ atexit (delete_temp_files); + /* Correct for the possible parameters. */ + argv += optind - 1; + argc -= optind - 1; + /* Call the initializing function, if one is available. */ #ifdef PREPARE PREPARE (argc, argv); |