util/xmlconfig: fix regexp compile failure check
This is embarrasing...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 04dc6074cf
("driconfig: add a new engine name/version parameter")
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
9c57b54994
commit
10206ba17b
|
@ -794,7 +794,7 @@ parseEngineAttr(struct OptConfData *data, const XML_Char **attr)
|
|||
if (engine_name_match) {
|
||||
regex_t re;
|
||||
|
||||
if (regcomp (&re, engine_name_match, REG_EXTENDED|REG_NOSUB) != 0) {
|
||||
if (regcomp (&re, engine_name_match, REG_EXTENDED|REG_NOSUB) == 0) {
|
||||
if (regexec (&re, data->engineName, 0, NULL, 0) == REG_NOMATCH)
|
||||
data->ignoringApp = data->inApp;
|
||||
regfree (&re);
|
||||
|
|
Loading…
Reference in New Issue