summaryrefslogtreecommitdiff
path: root/extra/w3m/GC_set_warn_proc.patch
blob: a679c8d236a04abed52c97a238c8e71731cb6dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- main.c.orig	2011-09-07 17:30:01.181808262 +0200
+++ main.c	2011-09-07 17:30:52.833808484 +0200
@@ -833,7 +833,8 @@
     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 */