elm_config: Fix potential sizeof mismatch 06/134006/2 accepted/tizen/unified/20170630.083048 submit/tizen/20170616.085651
authorHosang Kim <hosang12.kim@samsung.com>
Wed, 14 Jun 2017 07:54:33 +0000 (16:54 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 14 Jun 2017 10:32:33 +0000 (10:32 +0000)
Change-Id: I8444d95facd3221f90ead810cfce4ad2f03d2075

src/lib/elm_config.c

index dfea40d..075fa3f 100644 (file)
@@ -936,7 +936,7 @@ elm_config_profile_derived_add(const char *profile, const char *derive_options)
    Elm_Config_Derived *derived;
 
    derived = _elm_config_derived_load(_elm_profile);
-   if (!derived) derived = calloc(1, sizeof(derived));
+   if (!derived) derived = calloc(1, sizeof(Elm_Config_Derived));
    if (derived)
      {
         Elm_Config_Derived_Profile *dp = calloc(1, sizeof(Elm_Config_Derived_Profile));