diff options
-rw-r--r-- | cg-base.c | 4 | ||||
-rw-r--r-- | cg-limits.c | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -572,7 +572,9 @@ main(int argc, char *argv[]) } opt[0] = *args++; opt[2] = '\0'; - if ((*opt != '-') && (*opt != '+')) + if (*opt != '-' && *opt != '+') + break; + if (!*args) break; while (*args) { opt[1] = *args++; diff --git a/cg-limits.c b/cg-limits.c index 242d46b..8f596f2 100644 --- a/cg-limits.c +++ b/cg-limits.c @@ -648,7 +648,7 @@ start(void) r = update_filter(i, 0); if (r == -2 || (r == -1 && errno != EAGAIN)) return cleanup(r); - if (!crtc_updates[i].slaves) { + if (crtc_updates[i].slaves) { for (j = 0; crtc_updates[i].slaves[j]; j++) { r = update_filter(crtc_updates[i].slaves[j], 0); if (r == -2 || (r == -1 && errno != EAGAIN)) |