diff options
Diffstat (limited to 'unix')
-rwxr-xr-x | unix/vncserver | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/vncserver b/unix/vncserver index a9b1b192..8f36d796 100755 --- a/unix/vncserver +++ b/unix/vncserver @@ -306,7 +306,7 @@ sub CheckGeometryAndDepth die "$prog: geometry $geometry is invalid\n"; } - if (($depth < 8) || ($depth > 32)) { + if ($depth && (($depth < 8) || ($depth > 32))) { die "Depth must be between 8 and 32\n"; } } |