]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[unit-tests] scan-build: Result of 'malloc' is converted to a pointer of type 'char... 405/head
authorDragos Oancea <dragos@signalwire.com>
Fri, 21 Feb 2020 20:28:41 +0000 (20:28 +0000)
committerDragos Oancea <dragos@signalwire.com>
Fri, 21 Feb 2020 20:28:41 +0000 (20:28 +0000)
tests/unit/switch_core_file.c

index c6aa74a24e2cc6f1330514b945fe72078766c576..54da0f4a1a04a4d8be203fd8092a65d98080599b 100644 (file)
@@ -132,7 +132,7 @@ FST_CORE_BEGIN("./conf")
                        switch_status_t status = SWITCH_STATUS_FALSE;
                        switch_file_handle_t fhw = { 0 };
                        static char filename[] = "/tmp/fs_write_unit_test.wav";
-                       char *buf;
+                       int16_t *buf;
                        int nr_frames = 3, i;
                        switch_size_t len;
 
@@ -159,7 +159,7 @@ FST_CORE_BEGIN("./conf")
                        switch_status_t status = SWITCH_STATUS_FALSE;
                        switch_file_handle_t fhw = { 0 };
                        static char filename[] = "/tmp/fs_write_unit_test.wav";
-                       char *buf;
+                       int16_t *buf;
                        int nr_frames = 3, i, want_channels = 2;
                        switch_size_t len;