[vim/vim] Redundant NULL checks in find_pattern_in_path() (PR #19185)

1 view
Skip to first unread message

zeertzjq

unread,
Jan 15, 2026, 8:26:34 PM (8 hours ago) Jan 15
to vim/vim, Subscribed

Problem: Redundant NULL checks in find_pattern_in_path().
Solution: Remove the NULL checks.

After assigning to inc_opt on line 3461, it's dereferenced immediately,
and not assigned another value afterwards, so checking for NULL after
line 3462 is redundant.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19185

Commit Summary

  • ef7b217 Redundant NULL checks in find_pattern_in_path()

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19185@github.com>

zeertzjq

unread,
3:14 AM (1 hour ago) 3:14 AM
to vim/vim, Push

@zeertzjq pushed 1 commit.

  • 35b504a Redundant NULL checks in find_pattern_in_path()


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19185/before/ef7b21723554cb2cab5fa38efe77619eff1514d3/after/35b504a54b84dfaa99688d2239d3c49041e5211a@github.com>

Reply all
Reply to author
Forward
0 new messages