scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 0ad8ff111c78e05e17d84bd99ff867cfed762880
parent 3e70d6bebe7d1a43654c6ea6301c5783f6ebcf70
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  2 Feb 2018 18:05:00 +0100

[as] Fix use before setting in field()

Diffstat:
Mas/parser.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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