mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
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
This commit is contained in:
parent
37e18b7bf3
commit
379b18218d
1 changed files with 1 additions and 1 deletions
|
@ -886,7 +886,7 @@ static int fixup_rpath(struct dso *p, char *buf, size_t buf_size)
|
|||
case ENOENT:
|
||||
case ENOTDIR:
|
||||
case EACCES:
|
||||
break;
|
||||
return 0;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue