mirror of https://github.com/thesofproject/sof.git
logger: Fix log_err usage at early stages of sof-logger run
This function could fail when called before convert() Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
parent
2de506025f
commit
1ad0269f5d
|
@ -45,7 +45,7 @@ extern struct convert_config *global_config;
|
|||
|
||||
void log_err(const char *fmt, ...)
|
||||
{
|
||||
FILE *out_fd = global_config->out_fd;
|
||||
FILE *out_fd = global_config ? global_config->out_fd : NULL;
|
||||
static const char prefix[] = "error: ";
|
||||
ssize_t needed_size;
|
||||
va_list args, args_alloc;
|
||||
|
|
Loading…
Reference in New Issue