storage: fix allocation mismatch 32/69232/1 accepted/tizen/common/20160520.171304 accepted/tizen/ivi/20160520.081642 accepted/tizen/mobile/20160520.081656 accepted/tizen/tv/20160520.081625 accepted/tizen/wearable/20160520.081623 submit/tizen/20160520.041507
authorsunm.lee <sunm.lee@samsung.com>
Thu, 12 May 2016 08:11:44 +0000 (17:11 +0900)
committersunm.lee <sunm.lee@samsung.com>
Thu, 12 May 2016 08:16:48 +0000 (17:16 +0900)
The pointer variable 'dev' should be assinged to pointer of
storage_ext_device, not pointer of (storage_ext_device *).

Change-Id: Ic9a82c0849b411bca44b95db564f0fd731ea6eba
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
src/storage-external-dbus.c

index e4f4c49..2d86e3c 100755 (executable)
@@ -236,7 +236,7 @@ static void storage_ext_object_path_changed(enum storage_ext_state state,
        if (!devnode)
                goto out;
 
-       dev = calloc(1, sizeof(storage_ext_device *));
+       dev = calloc(1, sizeof(storage_ext_device));
        if (!dev)
                goto out;