shithub: scc

Download patch

ref: 003cf74c555835ee8941a3e37b3ad265cc8c50de
parent: 4d6c78fca89515fbb40f4feb3f92f41d4d638271
author: Quentin Rameau <quinq@fifth.space>
date: Wed Jun 15 11:25:48 EDT 2016

[driver] fix failed tool value in terminate

CC1 value is 0, so have a default value of -1

--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -69,7 +69,7 @@
 terminate(void)
 {
 	struct tool *t;
-	int tool, failed = 0;
+	int tool, failed = -1;
 
 	for (tool = 0; tool < LAST_TOOL; ++tool) {
 		t = &tools[tool];