Prevent null format string
This commit is contained in:
parent
e2535a113a
commit
49d45c50a2
1 changed files with 2 additions and 0 deletions
|
@ -326,6 +326,8 @@ struct ggml_logger_state {
|
|||
static struct ggml_logger_state g_logger_state = {ggml_log_callback_default, NULL};
|
||||
|
||||
static void ggml_log_internal_v(enum ggml_log_level level, const char * format, va_list args) {
|
||||
if (format == NULL)
|
||||
return;
|
||||
va_list args_copy;
|
||||
va_copy(args_copy, args);
|
||||
char buffer[128];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue