Spaces:
Running
Running
Halalaluyafail3
commited on
Fix execlp call (ggml/689)
Browse filesNULL 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.
ggml.c
CHANGED
|
@@ -132,7 +132,7 @@ void ggml_print_backtrace(void) {
|
|
| 132 |
"-ex", "bt -frame-info source-and-location",
|
| 133 |
"-ex", "detach",
|
| 134 |
"-ex", "quit",
|
| 135 |
-
NULL);
|
| 136 |
} else {
|
| 137 |
waitpid(pid, NULL, 0);
|
| 138 |
}
|
|
|
|
| 132 |
"-ex", "bt -frame-info source-and-location",
|
| 133 |
"-ex", "detach",
|
| 134 |
"-ex", "quit",
|
| 135 |
+
(char *) NULL);
|
| 136 |
} else {
|
| 137 |
waitpid(pid, NULL, 0);
|
| 138 |
}
|