Commit 0d6c4ff6229159cd567eb1d04cab60340f923e7d

Ethan Lee 2022-09-29T11:36:07

testaudioinfo: Initialize deviceName unconditionally

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/testaudioinfo.c b/test/testaudioinfo.c
index 340aac6..9e3bfcd 100644
--- a/test/testaudioinfo.c
+++ b/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;