Skip to content

Commit

Permalink
Fixed loopwave crash with no command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 8, 2014
1 parent 9fb2cc1 commit a93474a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/loopwave.c
Expand Up @@ -90,7 +90,7 @@ main(int argc, char *argv[])
return (1);
}

if (argc >= 1) {
if (argc > 1) {
SDL_strlcpy(filename, argv[1], sizeof(filename));
} else {
SDL_strlcpy(filename, "sample.wav", sizeof(filename));
Expand Down

0 comments on commit a93474a

Please sign in to comment.