summaryrefslogtreecommitdiffstats
path: root/examples/fontsel.c
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-03-28 15:13:29 +0200
committerChristian Beier <dontmind@freeshell.org>2011-03-28 15:13:29 +0200
commit471baea920773e3080b7972b93dbe091ebe3b4e0 (patch)
treef29897c140230af1ce95943baa18b89d664b8ba3 /examples/fontsel.c
parent64daa71ede302d4d0ba4174b3dcec49bf2588111 (diff)
parent62b7acf48009cfad1a54bd8ba04b662f9ac53c80 (diff)
downloadlibtdevnc-471baea920773e3080b7972b93dbe091ebe3b4e0.tar.gz
libtdevnc-471baea920773e3080b7972b93dbe091ebe3b4e0.zip
Merge branch 'master' of ssh://libvncserver.git.sourceforge.net/gitroot/libvncserver/libvncserver
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);