From 8a90312903d310605ade3396ee4bd828de5005f0 Mon Sep 17 00:00:00 2001 From: Younghwan Ahn Date: Fri, 24 Aug 2012 21:23:54 +0900 Subject: [PATCH] 2.0 beta init --- mm_attrs_private.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.7.4