summaryrefslogtreecommitdiffstats
path: root/vncterm/VNConsole.c
diff options
context:
space:
mode:
Diffstat (limited to 'vncterm/VNConsole.c')
-rw-r--r--vncterm/VNConsole.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vncterm/VNConsole.c b/vncterm/VNConsole.c
index d0757ba..e87df54 100644
--- a/vncterm/VNConsole.c
+++ b/vncterm/VNConsole.c
@@ -121,8 +121,8 @@ vncConsolePtr vcGetConsole(int *argc,char **argv,
if(c->cy1<0)
c->cy2=0;
- c->screen=
- rfbGetScreen(argc,argv,c->cWidth*c->width,c->cHeight*c->height,8,1,1);
+ if(!(c->screen = rfbGetScreen(argc,argv,c->cWidth*c->width,c->cHeight*c->height,8,1,1)))
+ return NULL;
c->screen->screenData=(void*)c;
c->screen->displayHook=vcMakeSureCursorIsDrawn;
c->screen->frameBuffer=