struct dt_thread_info *info = lu_context_key_get(&env->le_ctx,
&dt_key);
struct dt_find_hint *dfh = &info->dti_dfh;
- struct dt_object *obj = dfh->dfh_o;
+ struct dt_object *obj;
char *local = info->dti_buf;
int result;
result = dt_path_parser(env, local, dt_find_entry, dfh);
if (result != 0)
obj = ERR_PTR(result);
+ else
+ obj = dfh->dfh_o;
}
} else {
obj = ERR_PTR(result);