]> git.ipfire.org Git - thirdparty/shadow.git/commit
xgetXXbyYY: Avoid duplicated error handling block
authorSamanta Navarro <ferivoz@riseup.net>
Mon, 15 May 2023 11:59:23 +0000 (11:59 +0000)
committerSerge Hallyn <serge@hallyn.com>
Fri, 26 May 2023 21:03:27 +0000 (16:03 -0500)
commitdcc90658fd672c63e5498619e77f2d5a3d95f7d7
tree56a03f015623acfebd453a551e7fe9d14834a1cc
parente73a2194b3d257da996cbcceaa0fb376831ae62b
xgetXXbyYY: Avoid duplicated error handling block

The error handling is performed after the loop. By just calling break it
is possible to reuse the error handling if status is not ERANGE.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
libmisc/xgetXXbyYY.c