add missed break 70/129470/1
authorHyongtaek Lim <hyongtaek.lim@samsung.com>
Tue, 16 May 2017 12:18:14 +0000 (21:18 +0900)
committerHyongtaek Lim <hyongtaek.lim@samsung.com>
Tue, 16 May 2017 12:18:44 +0000 (21:18 +0900)
Signed-off-by: Hyongtaek Lim <hyongtaek.lim@samsung.com>
Change-Id: I6023433c3b8341c18959db62b07ecc3e0d8d1bd7

mm_attrs.c

index a0353cd..3e09d67 100644 (file)
@@ -473,7 +473,7 @@ int mm_attrs_set_valist (MMHandleType attrs, char **err_attr_name, const char *a
                {
                        case MM_ATTRS_TYPE_INT:
                        {
-                               int val =       va_arg ((var_args), int);
+                               int val = va_arg ((var_args), int);
 //                             mmf_debug(MMF_DEBUG_LOG, "(%s: %d)\n", name, val);
                                ret = mm_attrs_set_int(attrs, idx, val);
                                break;
@@ -604,6 +604,7 @@ int mm_attrs_get_valist (MMHandleType attrs, char **err_attr_name, const char *a
                                //if (err_attr_name)
                                //      *err_attr_name = strdup(name);
                                ret =  MM_ERROR_COMMON_INVALID_ARGUMENT;
+                               break;
                }
 
                if (ret != MM_ERROR_NONE)