Prevent null format string

This commit is contained in:
Mason M 2024-10-01 21:16:09 -03:00
parent e2535a113a
commit 49d45c50a2

View file

@ -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];