summaryrefslogtreecommitdiffstats
path: root/examples/colourmaptest.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/colourmaptest.c')
-rw-r--r--examples/colourmaptest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/colourmaptest.c b/examples/colourmaptest.c
index e403164..20ea303 100644
--- a/examples/colourmaptest.c
+++ b/examples/colourmaptest.c
@@ -7,7 +7,8 @@ int main(int argc,char** argv)
uint8_t bytes[256*3];
rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,256,256,8,1,1);
-
+ if(!server)
+ return 0;
server->serverFormat.trueColour=FALSE;
server->colourMap.count=256;
server->colourMap.is16=FALSE;