From d6aed19dfb730ea5b31f03a5339cd22deb49278c Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 21 Mar 2008 20:38:28 +0000 Subject: [PATCH] No need to be gratuitously style(9) non-compliant here, even though C++ lets me get away with it. --- sbin/devd/token.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/devd/token.l b/sbin/devd/token.l index 0fa78da4ebc3..35e8a18e6354 100644 --- a/sbin/devd/token.l +++ b/sbin/devd/token.l @@ -61,10 +61,10 @@ update_lineno(const char *cp) \} { return ENDBLOCK; } [0-9]+ { yylval.i = atoi(yytext); return NUMBER; } \"[^"]+\" { - update_lineno(yytext); int len = strlen(yytext) - 2; char *walker; int i; + update_lineno(yytext); if ((yylval.str = (char *) malloc(len + 1)) == NULL) goto out; walker = yylval.str;