mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-11 07:18:15 +00:00
Fix typo in variable name in qpol_policy_get_genfscon_by_name
This bug was found with "gcc -Wunused-but-set-variable" because error variable was never used in qpol_policy_get_genfscon_by_name
This commit is contained in:
parent
ce8323954d
commit
2b380727e0
@ -76,7 +76,7 @@ int qpol_policy_get_genfscon_by_name(const qpol_policy_t * policy, const char *n
|
||||
if (!(*genfscon)) {
|
||||
error = errno;
|
||||
ERR(policy, "%s", strerror(ENOMEM));
|
||||
errno = errno;
|
||||
errno = error;
|
||||
return STATUS_ERR;
|
||||
}
|
||||
/* shallow copy only the struct pointer (genfscon) should be free()'ed */
|
||||
|
Loading…
Reference in New Issue
Block a user