Fix segfault when passing no argument