{
int ref;
- if (type < 0 || type >= TRACKER_TYPE_MAX || !trackers[type]) {
+ if (type <= TRACKER_TYPE_INVALID || type >= TRACKER_TYPE_MAX || !trackers[type]) {
_E("Try to access not existed tracker %d", type);
return TRACKER_ERROR_INVALID_PARAMETER;
}
{
int count;
- if (type < 0 || type >= TRACKER_TYPE_MAX || !trackers[type]) {
+ if (type <= TRACKER_TYPE_INVALID || type >= TRACKER_TYPE_MAX || !trackers[type]) {
_E("Try to access not existed tracker %d", type);
return TRACKER_ERROR_INVALID_PARAMETER;
}