1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-05-12 14:50:39 +03:00

Fix error path if regex engine cannot be created in _build_matcher().

Fix only 'stack' printing with full function error exit.
This commit is contained in:
Zdenek Kabelac 2010-12-20 13:45:39 +00:00
parent 9b30dfb967
commit 9376ec18cd
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.79 -
===================================
Fix error path if regex engine cannot be created in _build_matcher().
Use char* arithmetic in target_version(), _process_all(), _targets().
Fixing const cast gcc warnings in the code.
Check read() and close() results in _get_cmdline().

View File

@ -137,7 +137,7 @@ static int _build_matcher(struct rfilter *rf, const struct config_value *val)
*/
if (!(rf->engine = dm_regex_create(rf->mem, (const char **) regex,
count)))
stack;
goto_out;
r = 1;
out: