Re: FVWM: argh

From: Risto J Laitinen <rjl_at_math.jyu.fi>
Date: Wed, 8 May 1996 16:42:01 +0300

Todd Fries writes:
> don't apply that patch I just submitted. Somehow it causes fvwm to
> seg fault for me....when I am in an environment where I can run
> gdb on the window manager, I will try to see why it does...unless
> someone on the list wants to point out the obvious mistake I
> should be seeing..

strdup(NULL) chokes at least on Linux, whereas on HP-UX it works
like strdup("").

Something like
        #define strdup_safe(s) ((s)?strdup(s):NULL)
should do what you inteded.
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed May 08 1996 - 08:41:01 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST