Skip to content

Commit

Permalink
Fixed another loopwave crash with no command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 8, 2014
1 parent a93474a commit 5907cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/loopwave.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5907cfa

Please sign in to comment.