aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-base.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-01 14:24:39 +0100
committerMattias Andrée <maandree@kth.se>2016-12-01 14:24:39 +0100
commit0a8b8c29d48b9c1e92e96a77234f5500d20c1bef (patch)
treef5872a6c9b914e1f8b3e2ebc47198a4ca8f53bd6 /src/cg-base.c
parentFix arg parsing (diff)
downloadcg-tools-0a8b8c29d48b9c1e92e96a77234f5500d20c1bef.tar.gz
cg-tools-0a8b8c29d48b9c1e92e96a77234f5500d20c1bef.tar.bz2
cg-tools-0a8b8c29d48b9c1e92e96a77234f5500d20c1bef.tar.xz
Fix bugs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/cg-base.c')
-rw-r--r--src/cg-base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cg-base.c b/src/cg-base.c
index d75e70d..a8c7f71 100644
--- a/src/cg-base.c
+++ b/src/cg-base.c
@@ -811,7 +811,7 @@ LIST_DEPTHS
const char* crtc = crtc_updates[crtcs_i].filter.crtc;
if (cg.error.custom)
{
- if ((cg.error.number != 0) || (cg.error.description != NULL))
+ if ((cg.error.number != 0) && (cg.error.description != NULL))
fprintf(stderr, "%s: %s-side error number %" PRIu64 " for CRTC %s: %s\n",
argv0, side, cg.error.number, crtc, cg.error.description);
else if (cg.error.number != 0)
@@ -866,7 +866,7 @@ LIST_DEPTHS
const char* side = cg.error.server_side ? "server" : "client";
if (cg.error.custom)
{
- if ((cg.error.number != 0) || (cg.error.description != NULL))
+ if ((cg.error.number != 0) && (cg.error.description != NULL))
fprintf(stderr, "%s: %s-side error number %" PRIu64 ": %s\n",
argv0, side, cg.error.number, cg.error.description);
else if (cg.error.number != 0)