mirror of https://github.com/encounter/SDL.git
Fixed loopwave crash with no command line arguments
This commit is contained in:
parent
9fb2cc10c0
commit
a93474a2e5
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue