From: Junkyeong Kim Date: Wed, 20 Feb 2019 01:20:36 +0000 (+0900) Subject: server: check null of current mode for voutput set mode X-Git-Tag: accepted/tizen/unified/20190311.072611~3 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Flibtdm.git;a=commitdiff_plain;h=9423a5a578d135c6dc225de6bcbcb713564a2cd6 server: check null of current mode for voutput set mode Change-Id: I11f8753d7493d2b977fd34e3f757fc5a046abafc Signed-off-by: Junkyeong Kim --- diff --git a/src/tdm_server.c b/src/tdm_server.c index adddc5b..6c4c6ab 100644 --- a/src/tdm_server.c +++ b/src/tdm_server.c @@ -897,7 +897,7 @@ _tdm_voutput_cb_set_mode(struct wl_client *client, struct wl_resource *resource, return; } - if ((mode->hdisplay != current_mode->hdisplay) || (mode->vdisplay != current_mode->vdisplay)) { + if (current_mode && ((mode->hdisplay != current_mode->hdisplay) || (mode->vdisplay != current_mode->vdisplay))) { LIST_FOR_EACH_ENTRY_SAFE(vb, vbb, &voutput_info->buffer_list, link) { if (vb->wl_buffer == voutput_info->attach_buffer->wl_buffer) voutput_info->attach_buffer->need_reset = 1;