From 0fd0715d015a2396b0ec66cb0bc83ec0b61c0d08 Mon Sep 17 00:00:00 2001 From: Spencer Thomason Date: Fri, 1 Jul 2016 09:14:12 -0700 Subject: [PATCH] core: ensure cfg_block structure is 8 byte aligned - prevents bus error on stricter cpu architectures like sparc - reported by GH #655 --- cfg/cfg_struct.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cfg/cfg_struct.h b/cfg/cfg_struct.h index 452bb90923d..6436eed6776 100644 --- a/cfg/cfg_struct.h +++ b/cfg/cfg_struct.h @@ -129,6 +129,7 @@ typedef struct _cfg_block { atomic_t refcnt; /*!< reference counter, the block is automatically deleted when it reaches 0 */ + int _pad; /*!< force 8 byte alignment */ unsigned char vars[1]; /*!< blob that contains the values */ } cfg_block_t;