summaryrefslogtreecommitdiffstats
path: root/examples/camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/camera.c')
-rw-r--r--examples/camera.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/camera.c b/examples/camera.c
index 7077790..58ab1c3 100644
--- a/examples/camera.c
+++ b/examples/camera.c
@@ -133,6 +133,8 @@ int main(int argc,char** argv)
long usec;
rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,WIDTH,HEIGHT,8,3,BPP);
+ if(!server)
+ return 0;
server->desktopName = "Live Video Feed Example";
server->frameBuffer=(char*)malloc(WIDTH*HEIGHT*BPP);
server->alwaysShared=(1==1);