summaryrefslogtreecommitdiff
path: root/user/w3m/use-modern-gc.patch
blob: a30d642bb8d273c60003ee674045986992047c8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- w3m-0.5.3/main.c.old	2011-01-04 09:42:19.000000000 +0000
+++ w3m-0.5.3/main.c	2019-01-18 20:12:22.570000000 +0000
@@ -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 */