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