mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-29 20:27:12 +01:00
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);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc >= 1) {
|
if (argc > 1) {
|
||||||
SDL_strlcpy(filename, argv[1], sizeof(filename));
|
SDL_strlcpy(filename, argv[1], sizeof(filename));
|
||||||
} else {
|
} else {
|
||||||
SDL_strlcpy(filename, "sample.wav", sizeof(filename));
|
SDL_strlcpy(filename, "sample.wav", sizeof(filename));
|
||||||
|
Loading…
Reference in New Issue
Block a user