shithub: scc

Download patch

ref: 581acbbb228e5dd612a5bd5e8dc74b22c69d758e
parent: 905c84e75d0ccd5a2d92e0313dc20bf35054e902
author: Quentin Rameau <quinq@fifth.space>
date: Tue Jun 21 16:51:37 EDT 2016

[cc2-qbe] fix uninitialized haslabel in code.c

--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -304,7 +304,7 @@
 	Symbol *p;
 	Type *tp;
 	char *sep, *name;
-	int haslabel;
+	int haslabel = 0;
 
 	if (curfun->kind == SGLOB)
 		fputs("export ", stdout);