roken: fix rk_getauxval missing stack variable

if defined(HAVE_GETAUXVAL) && !defined(GETAUXVAL_SETS_ERRNO) the
stack variable declaration for 'a' is missing:

  const auxv_t *a

Declare 'a' so that Heimdal can build again.

Change-Id: If64dd497f240688b76f3dd6139ac68c2ff149a0e
This commit is contained in:
Jeffrey Altman
2017-04-29 00:59:56 -04:00
parent 2e01930cf7
commit 18f3115f78

View File

@@ -182,8 +182,11 @@ rk_getauxval(unsigned long type)
} }
if (getauxval_sets_errno == 0) { if (getauxval_sets_errno == 0) {
const auxv_t *a;
errno = save_errno; errno = save_errno;
if ((a = rk_getauxv(type)) == NULL) { a = rk_getauxv(type);
if (a == NULL) {
errno = ENOENT; errno = ENOENT;
return 0; return 0;
} }