From 5907cfaadf3141eea84740a62f53386d99052efb Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 7 Jun 2014 17:25:35 -0700 Subject: [PATCH] Fixed another loopwave crash with no command line arguments --- test/loopwave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/loopwave.c b/test/loopwave.c index e07038bac9345..288cea4a6de1b 100644 --- a/test/loopwave.c +++ b/test/loopwave.c @@ -97,7 +97,7 @@ main(int argc, char *argv[]) } /* 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); }