summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/Daemon/BoxDaemonImpl.cpp9
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;