check that argv[1] isn't null before strncmp()