Module: kamailio
Branch: master
Commit: 261c8a81974dba18881b50178511e4fa0c33f61c
URL:
https://github.com/kamailio/kamailio/commit/261c8a81974dba18881b50178511e4f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2016-07-04T09:41:20+02:00
Merge pull request #693 from sjthomason/fix-cfg-block-alignment
core: ensure cfg_block structure is 8 byte aligned
---
Modified: cfg/cfg_struct.h
---
Diff:
https://github.com/kamailio/kamailio/commit/261c8a81974dba18881b50178511e4f…
Patch:
https://github.com/kamailio/kamailio/commit/261c8a81974dba18881b50178511e4f…
---
diff --git a/cfg/cfg_struct.h b/cfg/cfg_struct.h
index 452bb90..6436eed 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;