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

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