shithub: mc

Download patch

ref: d04a5e5a459e5fd8dde5f3b0e6629124c03a6432
parent: b5d42225dec46ce9a0a0d6eaf59c442952455b47
author: Ori Bernstein <[email protected]>
date: Sun Dec 13 19:14:14 EST 2015

Don't use a null variable.

	Didn't fix everything in the last commit.

--- a/parse/stab.c
+++ b/parse/stab.c
@@ -318,7 +318,7 @@
 int mergetype(Type *old, Type *new)
 {
 	if (!new) {
-		lfatal(old->loc, "double prototyping of %s", tystr(new));
+		lfatal(old->loc, "double prototyping of %s", tystr(old));
 	}
 	else if (old->vis == Visexport && new->vis != Visexport) {
 		if (!old->sub && new->sub) {