Преглед на файлове

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.
Halalaluyafail3 преди 2 години
родител
ревизия
c910e3c28a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      ggml.c

+ 1 - 1
ggml.c

@@ -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);
     }