Fixed another loopwave crash with no command line arguments
authorSam Lantinga <slouken@libsdl.org>
Sat, 07 Jun 2014 17:25:35 -0700
changeset 8837 3fa15ed506f3
parent 8836 ab4cb2acb4d1
child 8838 b50a84131dc9
Fixed another loopwave crash with no command line arguments
test/loopwave.c
--- a/test/loopwave.c	Sat Jun 07 17:09:32 2014 -0700
+++ b/test/loopwave.c	Sat Jun 07 17:25:35 2014 -0700
@@ -97,7 +97,7 @@
     }
     /* Load the wave file into memory */
     if (SDL_LoadWAV(filename, &wave.spec, &wave.sound, &wave.soundlen) == NULL) {
-        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't load %s: %s\n", argv[1], SDL_GetError());
+        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't load %s: %s\n", filename, SDL_GetError());
         quit(1);
     }