components/w3m/patches/04-get_warn_proc.patch
changeset 3680 4dc408325e7e
equal deleted inserted replaced
3675:7879bc79abbf 3680:4dc408325e7e
       
     1 # Copied over from the desktop consolidation, which has the comment:
       
     2 # date:2012-08-09 owner:davelam type bug bugster:555467
       
     3 # Unfortunately there is no such bug in BugDB
       
     4 #
       
     5 # This patch needs to be evaluated to see if it needs to be passed upstream.
       
     6 
       
     7 --- w3m-0.5.2/main.c.ori	2012-08-09 10:33:36.510910856 +0800
       
     8 +++ w3m-0.5.2/main.c	2012-08-09 10:34:03.817856620 +0800
       
     9 @@ -842,7 +842,9 @@
       
    10      mySignal(SIGPIPE, SigPipe);
       
    11  #endif
       
    12  
       
    13 -    orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
       
    14 +    orig_GC_warn_proc = GC_get_warn_proc();
       
    15 +    GC_set_warn_proc(wrap_GC_warn_proc);
       
    16 +
       
    17      err_msg = Strnew();
       
    18      if (load_argc == 0) {
       
    19  	/* no URL specified */