1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-10 22:28:25 +02:00
openwrt-packages/w3m/patches/003-GC_set_warn_proc.patch
2011-03-27 01:36:04 +03:00

13 lines
356 B
Diff

--- a/main.c
+++ b/main.c
@@ -833,7 +833,8 @@ main(int argc, char **argv, char **envp)
mySignal(SIGPIPE, SigPipe);
#endif
- orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
+ orig_GC_warn_proc = GC_get_warn_proc();
+ GC_set_warn_proc(wrap_GC_warn_proc);
err_msg = Strnew();
if (load_argc == 0) {
/* no URL specified */