Skip to content

Commit

Permalink
test a pointer before dereferencing it. this fixes t/pmc/io_stdin.t. …
Browse files Browse the repository at this point in the history
…dukeleto++
  • Loading branch information
Whiteknight committed Feb 22, 2011
1 parent 4b647be commit 4e6b125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/parrot/main.c
Expand Up @@ -894,7 +894,7 @@ parseflags(Parrot_PMC interp, int argc, ARGIN(const char *argv[]),
const char * ext = strrchr(sourcefile, '.');
if (sourcefile && ext && !strcmp(ext, ".pbc"))
args->have_pbc_file = 1;
else if (sourcefile && !strcmp(ext, ".pasm"))
else if (sourcefile && ext && !strcmp(ext, ".pasm"))
args->have_pasm_file = 1;
verify_file_names(sourcefile, outfile);
if (!Parrot_api_string_import(interp, sourcefile, &args->sourcefile))
Expand Down

0 comments on commit 4e6b125

Please sign in to comment.