You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2016/03/20 03:24:54 UTC
[24/50] incubator-guacamole-server git commit: GUAC-1164: Do not
refer to disp member if it does not exist.
GUAC-1164: Do not refer to disp member if it does not exist.
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/commit/67a0a1fe
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/67a0a1fe
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/67a0a1fe
Branch: refs/heads/master
Commit: 67a0a1fe4612f7857da3adb229703b654e20539c
Parents: fc71dca
Author: Michael Jumper <mi...@guac-dev.org>
Authored: Tue Mar 15 22:11:06 2016 -0700
Committer: Michael Jumper <mi...@guac-dev.org>
Committed: Tue Mar 15 22:11:06 2016 -0700
----------------------------------------------------------------------
src/protocols/rdp/rdp_disp.c | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/67a0a1fe/src/protocols/rdp/rdp_disp.c
----------------------------------------------------------------------
diff --git a/src/protocols/rdp/rdp_disp.c b/src/protocols/rdp/rdp_disp.c
index cd18cb3..c7ea64a 100644
--- a/src/protocols/rdp/rdp_disp.c
+++ b/src/protocols/rdp/rdp_disp.c
@@ -38,8 +38,10 @@ guac_rdp_disp* guac_rdp_disp_alloc() {
guac_rdp_disp* disp = malloc(sizeof(guac_rdp_disp));
+#ifdef HAVE_FREERDP_DISPLAY_UPDATE_SUPPORT
/* Not yet connected */
disp->disp = NULL;
+#endif
/* No requests have been made */
disp->last_request = 0;
@@ -174,7 +176,9 @@ void guac_rdp_disp_update_size(guac_rdp_disp* disp,
/* Signal reconnect */
disp->reconnect_needed = 1;
+#ifdef HAVE_FREERDP_DISPLAY_UPDATE_SUPPORT
disp->disp = NULL;
+#endif
return;
}