char buf[256] = { 0, };
char buf_tag[512] = { 0, };
- if (noti == NULL)
- return NOTIFICATION_ERROR_INVALID_PARAMETER;
-
- if (time <= 0)
+ if (noti == NULL || time <= 0)
return NOTIFICATION_ERROR_INVALID_PARAMETER;
if (type <= NOTIFICATION_TEXT_TYPE_NONE
char *ret_text = NULL;
char *tag_value;
- if (noti == NULL)
- return NOTIFICATION_ERROR_INVALID_PARAMETER;
-
- if (time == NULL)
+ if (noti == NULL || time == NULL)
return NOTIFICATION_ERROR_INVALID_PARAMETER;
if (type <= NOTIFICATION_TEXT_TYPE_NONE
return NOTIFICATION_ERROR_INVALID_PARAMETER;
ret = notification_get_text(noti, type, &ret_text);
-
if (ret != NOTIFICATION_ERROR_NONE || ret_text == NULL)
return NOTIFICATION_ERROR_INVALID_PARAMETER;
app_control_h *app_control = (app_control_h *)option;
app_control_h app_control_new = NULL;
- if (noti == NULL)
- return NOTIFICATION_ERROR_INVALID_PARAMETER;
-
- if (app_control == NULL)
+ if (noti == NULL || app_control == NULL)
return NOTIFICATION_ERROR_INVALID_PARAMETER;
if (type != NOTIFICATION_LAUNCH_OPTION_APP_CONTROL)
bundle *b = NULL;
app_control_h app_control_new = NULL;
- if (noti == NULL) {
- err = NOTIFICATION_ERROR_INVALID_PARAMETER;
- NOTIFICATION_ERR("NOTIFICATION_ERROR_INVALID_PARAMETER");
- goto out;
- }
-
- if (event_handler == NULL) {
+ if (noti == NULL || event_handler == NULL) {
err = NOTIFICATION_ERROR_INVALID_PARAMETER;
NOTIFICATION_ERR("NOTIFICATION_ERROR_INVALID_PARAMETER");
goto out;