mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 05:48:47 +01:00
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:
parent
f34432ca1e
commit
c910e3c28a
2
ggml.c
2
ggml.c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user