char *total_size = NULL;
int ret = app_control_get_extra_data(service, "http://tizen.org/appcontrol/data/total_size", &(total_size));
if (ret != APP_CONTROL_ERROR_NONE) {
- ugd->limitsize = atol(total_size);
+ if(total_size) {
+ ugd->limitsize = atol(total_size);
+ } else {
+ ugd->limitsize = -1;
+ }
} else {
ugd->limitsize = -1;
}
}
GE_FREE(select_mode);
}
- if (launch_type == NULL)
+ if (launch_type == NULL) {
app_control_get_extra_data(service, GE_BUNDLE_LAUNCH_TYPE,
&launch_type);
+ }
if (launch_type == NULL) {
if (operation &&
!strcasecmp(operation, APP_CONTROL_OPERATION_PICK)) {