From a80e3521e108c8c625c40595453e235e43d84800 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Wed, 29 Feb 2012 08:52:26 -0500 Subject: [PATCH] Fix a segfault that happens when using the -file option. --- uip/dist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.4