Browse Source

testaudioinfo: Initialize deviceName unconditionally

Ethan Lee 2 years ago
parent
commit
0d6c4ff622
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/testaudioinfo.c

+ 1 - 1
test/testaudioinfo.c

@@ -47,7 +47,7 @@ print_devices(int iscapture)
 int
 main(int argc, char **argv)
 {
-    char *deviceName;
+    char *deviceName = NULL;
     SDL_AudioSpec spec;
     int n;