summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2016-05-03 01:34:23 -0700
committerBryce Harrington <bryce@osg.samsung.com>2016-05-03 01:34:23 -0700
commitaa258985e91416456b55de8b60620cc1554ffb6e (patch)
tree8e3d210683eb985a9023b204fe0ebcecde7e35af /src
parente16acabf7a54e0e0c3c4f000726de487d4583035 (diff)
downloadweston-aa258985e91416456b55de8b60620cc1554ffb6e.tar.gz
x11: Fix incorrect output counting logic
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index aeb2ac5e..2a56555c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -911,7 +911,7 @@ load_x11_backend(struct weston_compositor *c, char const * backend,
}
output_count++;
- if (option_count && output_count >= option_count)
+ if (output_count >= option_count)
break;
}