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.
This commit is contained in:
Halalaluyafail3 2024-01-09 11:16:37 -05:00 committed by Georgi Gerganov
parent f34432ca1e
commit c910e3c28a
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

2
ggml.c
View File

@ -132,7 +132,7 @@ void ggml_print_backtrace(void) {
"-ex", "bt -frame-info source-and-location", "-ex", "bt -frame-info source-and-location",
"-ex", "detach", "-ex", "detach",
"-ex", "quit", "-ex", "quit",
NULL); (char *) NULL);
} else { } else {
waitpid(pid, NULL, 0); waitpid(pid, NULL, 0);
} }