shithub: scc

Download patch

ref: fea3a7d917d4e0c2dafa31d954fac949572bff7e
parent: f936212f32ab267649630db5c5f14ce47d7aacc6
author: Quentin Rameau <quinq@fifth.space>
date: Tue Jun 7 11:24:43 EDT 2016

[driver] use early return logic in linkobjs

Thanks to k0ga for the suggestion.

--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -282,12 +282,11 @@
 	spawn(LD);
 	validatetools();
 
-	if (!kflag) {
-		for (i = 0; i < nobjs; ++i)
-			unlink(tmpobjs[i]);
-	}
+	if (kflag)
+		return;
 
-	return;
+	for (i = 0; i < nobjs; ++i)
+		unlink(tmpobjs[i]);
 }
 
 static void