Skip to content
Permalink
Browse files

Fixed loopwave crash with no command line arguments

  • Loading branch information
slouken committed Jun 8, 2014
1 parent 9fb2cc1 commit a93474a2e51b42c3df7c983d6c9921aeaedafc6d

File 1 of 1 in a93474a

@@ -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));

0 comments on commit a93474a

Please sign in to comment.