diff options
author | Zbigniew Kostrzewa <z.kostrzewa@samsung.com> | 2013-10-16 11:09:55 +0200 |
---|---|---|
committer | Zbigniew Kostrzewa <z.kostrzewa@samsung.com> | 2013-10-16 11:25:02 +0200 |
commit | 6a2ada8caac1dca55a48742c3039978744aa91b6 (patch) | |
tree | eada31a79c173696848a7a7fa7e61b5e0618f109 | |
parent | ec3cca7155764646c2d6026cb6028ef4f4075ac3 (diff) | |
download | web-provider-6a2ada8caac1dca55a48742c3039978744aa91b6.tar.gz web-provider-6a2ada8caac1dca55a48742c3039978744aa91b6.tar.bz2 web-provider-6a2ada8caac1dca55a48742c3039978744aa91b6.zip |
Fix Prevent issue
[Issue#] CID: 32908@Tizen_21
[Problem] Explicit null dereferenced
[Cause] Null pointer dereferenced
[Solution] Replace null pointer with valid variables
[Verification] Build repository
Change-Id: I87d43579ac412f2b9b134698ad44ea59bcbdaf55
-rwxr-xr-x | src/Daemon/BoxDaemonImpl.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Daemon/BoxDaemonImpl.cpp b/src/Daemon/BoxDaemonImpl.cpp index 22d7695..c3b1de2 100755 --- a/src/Daemon/BoxDaemonImpl.cpp +++ b/src/Daemon/BoxDaemonImpl.cpp @@ -219,13 +219,10 @@ int BoxDaemonImpl::boxReCreateCallback(ProviderEventArgPtr arg, void* data) return -1; } - int* width = NULL; - int* height = NULL; - if ((arg->info.lb_recreate.width == 0) || (arg->info.lb_recreate.height == 0)) { - livebox_service_get_size(LB_SIZE_TYPE_1x1, width, height); - arg->info.lb_recreate.width = *width; - arg->info.lb_recreate.height = *height; + livebox_service_get_size(LB_SIZE_TYPE_1x1, + &arg->info.lb_recreate.width, + &arg->info.lb_recreate.height); } info->boxWidth = arg->info.lb_recreate.width; |