shithub: mc

Download patch

ref: abd0b64337a11d4ffd92002c231674527ca63016
parent: dd84b81647f16d96ebc4372b8635230ae3a5eecd
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);
     }