ret = NOTIFICATION_ERROR_FROM_DB;
goto out;
}
+ if (row_count == 0) {
+ NOTIFICATION_ERR("Invalid uid [%d] or package name [%s]", uid, pkgname);
+ ret = NOTIFICATION_ERROR_INVALID_PARAMETER;
+ goto out;
+ }
col_index = col_count;
_get_table_field_data_int(query_setting_result, (int *)allow_to_notify, col_index++);
ret = NOTIFICATION_ERROR_FROM_DB;
goto out;
}
+ if (row_count == 0) {
+ NOTIFICATION_ERR("Invalid uid [%d]", uid);
+ ret = NOTIFICATION_ERROR_INVALID_PARAMETER;
+ goto out;
+ }
col_index = col_count;
_get_table_field_data_int(query_system_setting_result, (int *)do_not_disturb, col_index++);