Fix an issue with tsearch

Signed-off-by: Jithin Jose <jithin.jose@intel.com>