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