From 98394c7c42068eec85e52f0166a9e054978ef1fb Mon Sep 17 00:00:00 2001 From: Tim Horton Date: Thu, 7 Jan 2010 19:17:09 -0500 Subject: [PATCH] Add null sentinels to the end of seed_static_function and seed_static_value arrays in all modules; fixes BGO #592585 --- modules/gettext/seed-gettext.c | 3 ++- modules/libxml/seed-libxml.c | 3 ++- modules/multiprocessing/seed-multiprocessing.c | 3 ++- modules/os/seed-os.c | 3 ++- modules/readline/seed-readline.c | 3 ++- modules/sqlite/seed-sqlite.c | 6 ++---- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/modules/gettext/seed-gettext.c b/modules/gettext/seed-gettext.c index 13450b1..3061bdc 100644 --- a/modules/gettext/seed-gettext.c +++ b/modules/gettext/seed-gettext.c @@ -287,7 +287,8 @@ seed_static_function gettext_funcs[] = { {"dngettext", seed_gettext_dngettext, 0}, {"dcngettext", seed_gettext_dcngettext, 0}, {"setlocale", seed_gettext_setlocale, 0}, - {"gettext", seed_gettext_gettext, 0} + {"gettext", seed_gettext_gettext, 0}, + {0, 0, 0} }; SeedObject diff --git a/modules/libxml/seed-libxml.c b/modules/libxml/seed-libxml.c index f144753..0adf21b 100644 --- a/modules/libxml/seed-libxml.c +++ b/modules/libxml/seed-libxml.c @@ -449,7 +449,8 @@ seed_xml_xpathobj_get_value (SeedContext ctx, seed_static_function doc_funcs[] = { - {"xpathNewContext", seed_xml_construct_xpath_context, 0} + {"xpathNewContext", seed_xml_construct_xpath_context, 0}, + {0, 0, 0} }; seed_static_value doc_values[] = { diff --git a/modules/multiprocessing/seed-multiprocessing.c b/modules/multiprocessing/seed-multiprocessing.c index 202146a..f00a2e3 100644 --- a/modules/multiprocessing/seed-multiprocessing.c +++ b/modules/multiprocessing/seed-multiprocessing.c @@ -183,7 +183,8 @@ SeedValue seed_pipe_add_watch(SeedContext ctx, seed_static_function pipe_funcs[] = { {"read", seed_pipe_read, 0}, {"write", seed_pipe_write, 0}, - {"add_watch", seed_pipe_add_watch, 0} + {"add_watch", seed_pipe_add_watch, 0}, + {0, 0, 0} }; SeedObject diff --git a/modules/os/seed-os.c b/modules/os/seed-os.c index 9b32718..b227229 100644 --- a/modules/os/seed-os.c +++ b/modules/os/seed-os.c @@ -1065,7 +1065,8 @@ seed_static_function os_funcs[] = { {"ttyname", seed_os_ttyname, 0}, {"tcgetpgrp", seed_os_tcgetpgrp, 0}, {"tcsetpgrp", seed_os_tcsetpgrp, 0}, - {"access", seed_os_access, 0} + {"access", seed_os_access, 0}, + {0, 0, 0} }; #define OS_DEFINE_ENUM(name, value) \ diff --git a/modules/readline/seed-readline.c b/modules/readline/seed-readline.c index 5861d22..8dac0a9 100644 --- a/modules/readline/seed-readline.c +++ b/modules/readline/seed-readline.c @@ -177,7 +177,8 @@ seed_static_function readline_funcs[] = { {"bind", seed_readline_bind, 0}, {"done", seed_rl_done, 0}, {"buffer", seed_rl_buffer, 0}, - {"insert", seed_rl_insert, 0} + {"insert", seed_rl_insert, 0}, + {0, 0, 0} }; SeedObject diff --git a/modules/sqlite/seed-sqlite.c b/modules/sqlite/seed-sqlite.c index 1776fbc..b6a4c94 100644 --- a/modules/sqlite/seed-sqlite.c +++ b/modules/sqlite/seed-sqlite.c @@ -182,10 +182,8 @@ SeedValue seed_sqlite_close(SeedContext ctx, } seed_static_function database_funcs[] = { - {"close", seed_sqlite_close, 0} - , - {"exec", seed_sqlite_exec, 0} - , + {"close", seed_sqlite_close, 0}, + {"exec", seed_sqlite_exec, 0}, {0, 0, 0} }; -- 2.39.2