From: Ismo Puustinen Date: Fri, 19 Sep 2014 07:57:48 +0000 (+0300) Subject: libresource: keep on fixing the errors. X-Git-Tag: v0.0.60~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dfea991208b42ae138bdcfb4657d3417457c2ad8;p=profile%2Fivi%2Fmurphy.git libresource: keep on fixing the errors. --- diff --git a/src/plugins/resource-native/libmurphy-resource/message.c b/src/plugins/resource-native/libmurphy-resource/message.c index 1f48487..a26b08b 100644 --- a/src/plugins/resource-native/libmurphy-resource/message.c +++ b/src/plugins/resource-native/libmurphy-resource/message.c @@ -569,8 +569,9 @@ int create_resource_set_request(mrp_res_context_t *cx, mrp_res_attribute_t *elem = &res->priv->attrs[j]; const char *attr_name = elem->name; - mrp_msg_append(msg, RESPROTO_ATTRIBUTE_NAME, MRP_MSG_FIELD_STRING, - attr_name); + if (!mrp_msg_append(msg, RESPROTO_ATTRIBUTE_NAME, MRP_MSG_FIELD_STRING, + attr_name)) + goto error; switch (elem->type) { case 's':