]> source.dussan.org Git - tigervnc.git/commitdiff
Don't return without value here. 121/head
authorTim Waugh <twaugh@redhat.com>
Wed, 25 Feb 2015 11:27:19 +0000 (11:27 +0000)
committerTim Waugh <twaugh@redhat.com>
Wed, 25 Feb 2015 11:27:19 +0000 (11:27 +0000)
In particular, return 0 as this is a failure.

unix/xserver/hw/vnc/xvnc.c

index c668bde25365f877d4013ebcd235a088e8975d80..627e797c20df8be13981ad1cfd37788897dd891c 100644 (file)
@@ -408,7 +408,7 @@ ddxProcessArgument(int argc, char *argv[], int i)
            {
                ErrorF("Invalid pixmap depth %d\n", depth);
                UseMsg();
-               return;
+               return 0;
            }
            vfbPixmapDepths[depth] = TRUE;
            ret++;