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:
Nicolas Iooss 2014-11-01 14:23:26 +01:00 committed by Chris PeBenito
parent ce8323954d
commit 2b380727e0

View File

@ -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 */