GUAC-1164: Do not refer to disp member if it does not exist.

This commit is contained in:
Michael Jumper 2016-03-15 22:11:06 -07:00
parent fc71dcadb0
commit 67a0a1fe46

View File

@ -38,8 +38,10 @@ guac_rdp_disp* guac_rdp_disp_alloc() {
guac_rdp_disp* disp = malloc(sizeof(guac_rdp_disp)); guac_rdp_disp* disp = malloc(sizeof(guac_rdp_disp));
#ifdef HAVE_FREERDP_DISPLAY_UPDATE_SUPPORT
/* Not yet connected */ /* Not yet connected */
disp->disp = NULL; disp->disp = NULL;
#endif
/* No requests have been made */ /* No requests have been made */
disp->last_request = 0; disp->last_request = 0;
@ -174,7 +176,9 @@ void guac_rdp_disp_update_size(guac_rdp_disp* disp,
/* Signal reconnect */ /* Signal reconnect */
disp->reconnect_needed = 1; disp->reconnect_needed = 1;
#ifdef HAVE_FREERDP_DISPLAY_UPDATE_SUPPORT
disp->disp = NULL; disp->disp = NULL;
#endif
return; return;
} }