From: Ken Hornstein Date: Wed, 29 Feb 2012 13:52:26 +0000 (-0500) Subject: Fix a segfault that happens when using the -file option. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=a80e3521e108c8c625c40595453e235e43d84800;p=mmh Fix a segfault that happens when using the -file option. --- diff --git a/uip/dist.c b/uip/dist.c index 807eb78..20ae318 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -303,7 +303,7 @@ try_it_again: msgnam = file ? file : getcpy (m_name (mp->lowsel)); - dat[0] = mp->lowsel; + dat[0] = mp ? mp->lowsel : 0; dat[1] = 0; dat[2] = 0; dat[3] = outputlinelen;