diff options
| author | Warner Losh <imp@FreeBSD.org> | 2008-03-21 20:38:28 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2008-03-21 20:38:28 +0000 |
| commit | d6aed19dfb730ea5b31f03a5339cd22deb49278c (patch) | |
| tree | bdfef933810129b91c56e602c921339c3ffdbf10 /sbin | |
| parent | eba8219e9bb2d315842cbc2368a6740f247e838f (diff) | |
Notes
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/devd/token.l | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
