Skip to content

Commit 40671c7

Browse files
committed
Monitor: don't display () if display name is not available
1 parent 211fd4b commit 40671c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/modules/monitor/monitor.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ void ffPrintMonitor(FFMonitorOptions* options)
2929
ffStrbufClear(&key);
3030
if(options->moduleArgs.key.length == 0)
3131
{
32-
ffStrbufAppendF(&key, "%s (%s)", FF_MONITOR_MODULE_NAME, display->name.chars);
32+
ffStrbufAppendS(&key, FF_MONITOR_MODULE_NAME);
33+
if (display->name.length > 0)
34+
ffStrbufAppendF(&key, " (%s)", display->name.chars);
3335
}
3436
else
3537
{

0 commit comments

Comments
 (0)