Halalaluyafail3 commited on
Commit
abda16e
·
unverified ·
1 Parent(s): 75de5bf

Fix execlp call (ggml/689)

Browse files

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.

Files changed (1) hide show
  1. ggml.c +1 -1
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
  }