shithub: mc

Download patch

ref: 545ee279bf3bee642c0cc97c2fef4a699f96393f
parent: 311adc5c21b028429114abd30aa19ef940519265
author: Ori Bernstein <[email protected]>
date: Mon Aug 4 18:14:19 EDT 2014

Don't print 'tynil' in ucons.

--- a/parse/type.c
+++ b/parse/type.c
@@ -444,7 +444,8 @@
     p += snprintf(p, end - p, "union ");
     for (i = 0; i < t->nmemb; i++) {
         name = namestr(t->udecls[i]->name);
-        ty = tystr(t->udecls[i]->etype);
+        if (t->udecls[i]->etype)
+            ty = tystr(t->udecls[i]->etype);
         p += snprintf(p, end - p, "`%s %s; ", name, ty);
         free(ty);
     }