ldso: make exit condition clearer in fixup_rpath
authorÉrico Nogueira <ericonr@disroot.org>
Mon, 15 Aug 2022 18:14:25 +0000 (15:14 -0300)
committerRich Felker <dalias@aerifal.cx>
Wed, 17 Aug 2022 23:49:54 +0000 (19:49 -0400)
commit379b18218d18a049b5423bbb9bb22e066ffc3f78
tree77750e344918ec251ff274c3b43fa774c20abbd9
parent37e18b7bf307fa4a8c745feebfcba54a0ba74f30
ldso: make exit condition clearer in fixup_rpath

breaking out of the switch-case when l==-1 means the conditional below
will necessarily be true (-1 >= buf_size, a size_t variable) and the
function will return 0. it is, however, somewhat unclear that that's
what's happening. simply returning there is simpler
ldso/dynlink.c