summaryrefslogtreecommitdiffstats
path: root/examples/backchannel.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/backchannel.c')
-rw-r--r--examples/backchannel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/backchannel.c b/examples/backchannel.c
index 7aa0fa1..c625753 100644
--- a/examples/backchannel.c
+++ b/examples/backchannel.c
@@ -107,6 +107,8 @@ int main(int argc,char** argv)
rfbRegisterProtocolExtension(&backChannelExtension);
server=rfbGetScreen(&argc,argv,400,300,8,3,4);
+ if(!server)
+ return 0;
server->frameBuffer=(char*)malloc(400*300*4);
rfbInitServer(server);
rfbRunEventLoop(server,-1,FALSE);