From: Ismo Puustinen Date: Wed, 28 May 2014 11:33:32 +0000 (+0300) Subject: murphy-if: do not crash if message creation fails. X-Git-Tag: submit/tizen/20140528.115445^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=1b2c68de083f39b0078f5529e4f92530e1eed9b0;p=profile%2Fivi%2Fpulseaudio-module-murphy-ivi.git murphy-if: do not crash if message creation fails. Change-Id: Ia22714367150775a186aa5b54a7243b0e68a31f3 --- diff --git a/murphy/murphyif.c b/murphy/murphyif.c index 0f2d8bc..ce24ba8 100644 --- a/murphy/murphyif.c +++ b/murphy/murphyif.c @@ -1086,7 +1086,8 @@ static bool resource_set_create_node(struct userdata *u, priority = (resdef ? resdef->priority : 0); - msg = resource_create_request(seqno, reqid); + if (!(msg = resource_create_request(seqno, reqid))) + return false; if (PUSH_VALUE(msg, RESOURCE_FLAGS , UINT32, rset_flags) && PUSH_VALUE(msg, RESOURCE_PRIORITY, UINT32, priority) &&