summaryrefslogtreecommitdiff
path: root/xdriinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'xdriinfo.c')
-rw-r--r--xdriinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xdriinfo.c b/xdriinfo.c
index 1bca9c4..35d7458 100644
--- a/xdriinfo.c
+++ b/xdriinfo.c
@@ -112,6 +112,8 @@ int main (int argc, char *argv[]) {
return 1;
}
}
+ else
+ screenNum = -1;
/* driver command needs a valid screen number */
if (func == DRIVER && screenNum == -1) {