]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
Fix execlp call (ggml/689)
authorHalalaluyafail3 <redacted>
Tue, 9 Jan 2024 16:16:37 +0000 (11:16 -0500)
committerGeorgi Gerganov <redacted>
Thu, 11 Jan 2024 19:50:00 +0000 (21:50 +0200)
NULL can be an integer constant expression with the value zero, in this case the behavior would be undefined because of an incorrect type being passed to the variable arguments.

ggml.c

diff --git a/ggml.c b/ggml.c
index adb387100780e4e6ccf18c8bdeea84d8c7aa4399..4a0ec4c44b20949e160f9221db504fa077109d8f 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -132,7 +132,7 @@ void ggml_print_backtrace(void) {
             "-ex", "bt -frame-info source-and-location",
             "-ex", "detach",
             "-ex", "quit",
-            NULL);
+            (char *) NULL);
     } else {
         waitpid(pid, NULL, 0);
     }