mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-19 11:06:53 +00:00
libselinux: setexecfilecon(): drop dead assignment
The variable `rc` is always unconditionally assigned by the next call of `setexeccon()` and never read in between. Found by clang-analyzer. Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
parent
04335ab146
commit
411c5a5458
@ -37,7 +37,6 @@ int setexecfilecon(const char *filename, const char *fallback_type)
|
||||
newcon = strdup(context_str(con));
|
||||
if (!newcon)
|
||||
goto out;
|
||||
rc = 0;
|
||||
}
|
||||
|
||||
rc = setexeccon(newcon);
|
||||
|
Loading…
Reference in New Issue
Block a user