mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-02-02 09:47:04 +03:00
app: Return early on empty monitor mapping
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1304648
This commit is contained in:
parent
422cbb6ea6
commit
fcb200e3d4
@ -382,6 +382,11 @@ virt_viewer_app_parse_monitor_mappings(gchar **mappings, gsize nmappings)
|
||||
int max_display_id = 0;
|
||||
gchar **tokens = NULL;
|
||||
|
||||
if (nmappings == 0) {
|
||||
g_warning("Empty monitor-mapping configuration");
|
||||
goto configerror;
|
||||
}
|
||||
|
||||
for (i = 0; i < nmappings; i++) {
|
||||
gchar *endptr = NULL;
|
||||
gint display = 0, monitor = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user