From 1219beec442e63d47eb5bfb3b3bd7a7818b657c7 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 11 May 2016 15:05:35 -0400 Subject: code maintenance: properly initialize struct entities. --- src/internal/ntapi.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/internal') diff --git a/src/internal/ntapi.c b/src/internal/ntapi.c index d201eeb..885fe61 100644 --- a/src/internal/ntapi.c +++ b/src/internal/ntapi.c @@ -67,8 +67,8 @@ static __ntapi_init_fn * __ntapi_init_vtbl[3] = { __ntapi_init_completed}; /* accessor */ -ntapi_vtbl ___ntapi = {0}; -ntapi_vtbl ___ntapi_shadow = {0}; +ntapi_vtbl ___ntapi; +ntapi_vtbl ___ntapi_shadow; /* .bss */ static __ntapi_img_sec_bss __ntapi_img_bss; @@ -77,8 +77,12 @@ static __ntapi_img_sec_bss __ntapi_img_bss; static union __ntapi_img_rdata __ntapi_rdata = {{ {__NTAPI_HASH_TABLE}, /* __ntapi_import_table */ 0, /* __ntapi */ - {{0}}, /* __session_name */ - 0}}; /* __internals */ + { /* __session_name */ + {0},0,{0}, + {0,{0},0}, + {{0},0,{0},0,{0},0,{0},0,{0},0,{0}}, + 0}, + 0}}; #define internals __ntapi_rdata.img_sec_data.__internals #define import_table __ntapi_rdata.img_sec_data.__ntapi_import_table -- cgit v1.2.3