summaryrefslogtreecommitdiffstats
path: root/examples/fontsel.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fontsel.c')
-rw-r--r--examples/fontsel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/fontsel.c b/examples/fontsel.c
index 85d2624..15139dc 100644
--- a/examples/fontsel.c
+++ b/examples/fontsel.c
@@ -41,6 +41,9 @@ int main(int argc,char** argv)
rfbScreenInfoPtr s=rfbGetScreen(&argc,argv,640,480,8,3,3);
int i,j;
+ if(!s)
+ return 0;
+
s->frameBuffer=(char*)malloc(640*480*3);
rfbInitServer(s);