From 18f3115f78c82ec9fa8a1688c7a1309332d74678 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 29 Apr 2017 00:59:56 -0400 Subject: [PATCH] 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 --- lib/roken/getauxval.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/roken/getauxval.c b/lib/roken/getauxval.c index bb1091e65..31f52fa6e 100644 --- a/lib/roken/getauxval.c +++ b/lib/roken/getauxval.c @@ -182,8 +182,11 @@ rk_getauxval(unsigned long type) } if (getauxval_sets_errno == 0) { + const auxv_t *a; + errno = save_errno; - if ((a = rk_getauxv(type)) == NULL) { + a = rk_getauxv(type); + if (a == NULL) { errno = ENOENT; return 0; } -- 2.11.4.GIT