elementary: Fix potential sizeof mismatch
Coverity CID1347398 reports that this could potentially be a non-portable assumption resulting in a sizeof mismatch. Fix this by using the actual structure type in the call to calloc. Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
72aab589db
commit
579677008f
|
@ -900,7 +900,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));
|
||||
|
|
Loading…
Reference in New Issue