summaryrefslogtreecommitdiffstats
path: root/sbin/devd
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-03-21 20:38:28 +0000
committerimp <imp@FreeBSD.org>2008-03-21 20:38:28 +0000
commit5541a160b603ad5bc76d92e57bc79fb4085d6fdb (patch)
treebdfef933810129b91c56e602c921339c3ffdbf10 /sbin/devd
parent5ec67db8cbadac3e1788d3c202adc41fac58e84b (diff)
downloadFreeBSD-src-5541a160b603ad5bc76d92e57bc79fb4085d6fdb.zip
FreeBSD-src-5541a160b603ad5bc76d92e57bc79fb4085d6fdb.tar.gz
No need to be gratuitously style(9) non-compliant here, even though
C++ lets me get away with it.
Diffstat (limited to 'sbin/devd')
-rw-r--r--sbin/devd/token.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/devd/token.l b/sbin/devd/token.l
index 0fa78da..35e8a18 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;
OpenPOWER on IntegriCloud