diff options
| author | Halalaluyafail3 <55773281+Halalaluyafail3@users.noreply.github.com> | 2024-01-09 11:16:37 -0500 |
|---|---|---|
| committer | Georgi Gerganov <ggerganov@gmail.com> | 2024-01-11 09:39:05 +0200 |
| commit | c910e3c28a1caee8cb1398143d582dd9ab697e68 (patch) | |
| tree | 876a28d6e6e0750787d3567d7a615116947eada1 | |
| parent | f34432ca1e0b288129390c1db8296a82aaf1e632 (diff) | |
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.
| -rw-r--r-- | ggml.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
