/* Exec a program with an empty argument list -- i.e. so argv[0] is NULL.
 * This is obviously a silly thing to do, but quite a few programs don't detect
 * it and end up dereferencing NULL...
 * Adam Sampson <ats@offog.org>
 */

#include <stddef.h>
#include <stdio.h>
#include <unistd.h>

int main(int argc, char *argv[]) {
    char *empty[1] = { NULL };
    execvp(argv[1], empty);
    perror("execvp");
    return 1;
}
