summaryrefslogtreecommitdiffstats
path: root/examples/zippy.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/zippy.c')
-rw-r--r--examples/zippy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/zippy.c b/examples/zippy.c
index d8a90d7..4f793a9 100644
--- a/examples/zippy.c
+++ b/examples/zippy.c
@@ -27,6 +27,8 @@ int main (int argc, char **argv)
return 1;
server = rfbGetScreen (&argc, argv, maxx, maxy, 8, 3, bpp);
+ if(!server)
+ return 0;
server->desktopName = "Zippy das wundersquirrel\'s VNC server";
server->frameBuffer = (char*)malloc(maxx*maxy*bpp);
server->alwaysShared = TRUE;