summaryrefslogtreecommitdiffstats
path: root/test/copyrecttest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/copyrecttest.c')
-rw-r--r--test/copyrecttest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/copyrecttest.c b/test/copyrecttest.c
index 5521595..cd2a504 100644
--- a/test/copyrecttest.c
+++ b/test/copyrecttest.c
@@ -22,6 +22,8 @@ int main(int argc,char** argv)
double r,phi=0;
rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,width,height,8,3,4);
+ if(!server)
+ return 0;
server->frameBuffer=(char*)malloc(width*height*4);
initBackground(server);
server->deferUpdateTime=0;