summaryrefslogtreecommitdiffstats
path: root/x11vnc/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/scan.c')
-rw-r--r--x11vnc/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x11vnc/scan.c b/x11vnc/scan.c
index 74dec2b..5dbefe9 100644
--- a/x11vnc/scan.c
+++ b/x11vnc/scan.c
@@ -2931,7 +2931,7 @@ if (ncache > 0) {
nomsg = 0;
}
} else {
-fprintf(stderr, "\n*** SCAN_DISPLAY CHECK_NCACHE/%d *** %d rescan=%d\n", gotone, y, rescan);
+if (ncdb) fprintf(stderr, "\n*** SCAN_DISPLAY CHECK_NCACHE/%d *** %d rescan=%d\n", gotone, y, rescan);
}
X_UNLOCK;
check_ncache(0, 1);