fix: nullptr dereferencing

some code contained nullptr dereferencing
pull/141/head
safocl 2025-01-30 07:50:06 +04:00
parent 75dcdc2cf3
commit 6a78cf9421
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ int cluster_find(ntfs_volume *vol, LCN c_begin, LCN c_end, cluster_cb *cb, void
return -1;
m_ctx = mft_get_search_ctx(vol);
if (!m_ctx)
return -1;
m_ctx->flags_search = FEMR_IN_USE | FEMR_BASE_RECORD;
count = 0;