From: Halalaluyafail3 Date: Tue, 9 Jan 2024 16:16:37 +0000 (-0500) Subject: Fix execlp call (ggml/689) X-Git-Tag: upstream/1.7.4~1153 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=338442d7730fb636c793d17c1edb890fe38d2074;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp Fix execlp call (ggml/689) 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. --- diff --git a/ggml.c b/ggml.c index adb38710..4a0ec4c4 100644 --- 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); }