mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-30 13:00:30 +00:00
Allow the config file scanner to release its buffers upon EOF.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3296 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
bda180fcff
commit
9a8f962d88
1 file changed
+7
-1
+7
-1
@@ -47,7 +47,6 @@ char sensors_lex_error[100];
|
||||
|
||||
/* Scanner for configuration files */
|
||||
|
||||
%option noyywrap
|
||||
%option nodefault
|
||||
%option yylineno
|
||||
%option nounput
|
||||
@@ -269,3 +268,10 @@ OCTESC (1[0-7]{0,2})|([2-7][0-7]?)|(0[1-7][0-7]?)|(00[1-7])
|
||||
}
|
||||
|
||||
%%
|
||||
|
||||
int sensors_yywrap(void)
|
||||
{
|
||||
yy_delete_buffer(YY_CURRENT_BUFFER);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user