Testing: Don't call vsnprintf with NULL format
This commit is contained in:
parent
24493e9169
commit
c41a914d6e
1 changed files with 2 additions and 1 deletions
|
@ -199,6 +199,7 @@ bt_log_result(int result, const char *fmt, va_list argptr)
|
||||||
(fmt && strlen(fmt) > 0) ? ": " : "");
|
(fmt && strlen(fmt) > 0) ? ": " : "");
|
||||||
pos = msg_buf + strlen(msg_buf);
|
pos = msg_buf + strlen(msg_buf);
|
||||||
|
|
||||||
|
if (fmt)
|
||||||
vsnprintf(pos, sizeof(msg_buf) - (pos - msg_buf), fmt, argptr);
|
vsnprintf(pos, sizeof(msg_buf) - (pos - msg_buf), fmt, argptr);
|
||||||
|
|
||||||
int chrs = 0;
|
int chrs = 0;
|
||||||
|
|
Loading…
Reference in a new issue