Commit a93474a2e51b42c3df7c983d6c9921aeaedafc6d

Sam Lantinga 2014-06-07T17:09:32

Fixed loopwave crash with no command line arguments

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/loopwave.c b/test/loopwave.c
index ab94da4..e07038b 100644
--- a/test/loopwave.c
+++ b/test/loopwave.c
@@ -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));