Fixed loopwave crash with no command line arguments
authorSam Lantinga <slouken@libsdl.org>
Sat, 07 Jun 2014 17:09:32 -0700
changeset 8836ab4cb2acb4d1
parent 8835 bc5ec1b6904c
child 8837 3fa15ed506f3
Fixed loopwave crash with no command line arguments
test/loopwave.c
     1.1 --- a/test/loopwave.c	Sat Jun 07 11:36:08 2014 -0700
     1.2 +++ b/test/loopwave.c	Sat Jun 07 17:09:32 2014 -0700
     1.3 @@ -90,7 +90,7 @@
     1.4          return (1);
     1.5      }
     1.6  
     1.7 -    if (argc >= 1) {
     1.8 +    if (argc > 1) {
     1.9          SDL_strlcpy(filename, argv[1], sizeof(filename));
    1.10      } else {
    1.11          SDL_strlcpy(filename, "sample.wav", sizeof(filename));