From: DRC Date: Thu, 26 Mar 2009 18:23:29 +0000 (+0000) Subject: Don't complain if $depth not set X-Git-Tag: v0.0.90~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e5b4f75c856d4bd6b0ff913da958d937ee54004c;p=tigervnc.git 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 --- 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"; } }