Fixed loopwave crash with no command line arguments

This commit is contained in:
Sam Lantinga 2014-06-07 17:09:32 -07:00
parent 9fb2cc10c0
commit a93474a2e5
1 changed files with 1 additions and 1 deletions

View File

@ -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));