shithub: scc

Download patch

ref: 278181dd9110c3e2359aaa3c1961c1651441cd83
parent: e4f73e4cbfcc3ced54492a690a411d74aa0c7658
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Feb 2 13:05:00 EST 2018

[as] Fix use before setting in field()

--- a/as/parser.c
+++ b/as/parser.c
@@ -333,7 +333,7 @@
 	for (s = begin; isspace(*s) && *s != '\t'; ++s)
 		;
 	if (*s == '\0' || *s == '/' || *s == ';') {
-		*t = '\0';
+		*s = '\0';
 		return *oldp = NULL;
 	}