Skip to content

Commit

Permalink
Fix execlp call (#689)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Halalaluyafail3 authored Jan 9, 2024
1 parent 5a3154b commit ce1bdb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ce1bdb4

Please sign in to comment.