summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-11 15:05:35 -0400
committermidipix <writeonce@midipix.org>2016-05-14 07:18:25 -0400
commit1219beec442e63d47eb5bfb3b3bd7a7818b657c7 (patch)
tree75f4132b7fc19972d0a047148207d09a379c10a6 /src/internal
parentc713d8d019f7b0f9ed4a60912f440aca991d43c1 (diff)
downloadntapi-1219beec442e63d47eb5bfb3b3bd7a7818b657c7.tar.bz2
ntapi-1219beec442e63d47eb5bfb3b3bd7a7818b657c7.tar.xz
code maintenance: properly initialize struct entities.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/ntapi.c12
1 files changed, 8 insertions, 4 deletions
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