]> git.marmaro.de Git - mmh/commitdiff
Fix a segfault that happens when using the -file option.
authorKen Hornstein <kenh@pobox.com>
Wed, 29 Feb 2012 13:52:26 +0000 (08:52 -0500)
committerKen Hornstein <kenh@pobox.com>
Wed, 29 Feb 2012 13:52:26 +0000 (08:52 -0500)
uip/dist.c

index 807eb78bbf4afe2fe27612b5ef24ace2275cbd4f..20ae318f58afb1df4f119265485b8dea29a9c44c 100644 (file)
@@ -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;