From: Younghwan Ahn Date: Fri, 24 Aug 2012 12:23:54 +0000 (+0900) Subject: 2.0 beta init X-Git-Tag: 2.0_alpha~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a90312903d310605ade3396ee4bd828de5005f0;p=platform%2Fcore%2Fmultimedia%2Flibmm-common.git 2.0 beta init --- diff --git a/mm_attrs_private.c b/mm_attrs_private.c index 536d357..085adae 100644 --- a/mm_attrs_private.c +++ b/mm_attrs_private.c @@ -587,7 +587,9 @@ int mmf_attrs_init(MMHandleType h, mmf_attrs_construct_info_t *info, int count) break; case MMF_VALUE_TYPE_DATA: assert(attrs->items[i].value.value.p_val == NULL); - size = sizeof(info[i].default_value)+1; + if (info[i].default_value) { + size = sizeof(info[i].default_value)+1; + } mmf_value_set_data(&attrs->items[i].value, info[i].default_value,size); break; default: