From e5b4f75c856d4bd6b0ff913da958d937ee54004c Mon Sep 17 00:00:00 2001 From: DRC Date: Thu, 26 Mar 2009 18:23:29 +0000 Subject: [PATCH] Don't complain if $depth not set git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3727 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/vncserver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } } -- 2.39.5