]> git.pld-linux.org Git - packages/elinks.git/commitdiff
- NULL is not always correct va_list
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 2 Dec 2003 12:01:53 +0000 (12:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    elinks-va-alpha.patch -> 1.1

elinks-va-alpha.patch [new file with mode: 0644]

diff --git a/elinks-va-alpha.patch b/elinks-va-alpha.patch
new file mode 100644 (file)
index 0000000..badee1c
--- /dev/null
@@ -0,0 +1,34 @@
+--- elinks-0.5pre10/src/scripting/lua/core.c.orig      2003-11-14 02:31:06.000000000 +0000
++++ elinks-0.5pre10/src/scripting/lua/core.c   2003-12-02 11:41:05.000000000 +0000
+@@ -521,10 +521,12 @@
+       if (elinks_home) do_hooks_file(L, elinks_home, "hooks.lua");
+ }
++static void free_lua_console_history_entries(void);
++      
+ static void
+ cleanup_lua(struct module *module)
+ {
+-      free_lua_console_history(NULL, NULL);
++      free_lua_console_history_entries();
+       lua_close(L);
+ }
+@@ -703,10 +705,16 @@
+       return EHS_NEXT;
+ }
++static void
++free_lua_console_history_entries(void)
++{
++      free_list(lua_console_history.entries);
++}
++
+ enum evhook_status
+ free_lua_console_history(va_list ap, void *data)
+ {
+-      free_list(lua_console_history.entries);
++      free_lua_console_history_entries();
+       return EHS_NEXT;
+ }
This page took 0.048883 seconds and 4 git commands to generate.