mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 07:38:10 +02:00
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> (cherry picked from commit10206ba17b)
This commit is contained in:
parent
d5fe3f73fc
commit
3aeddc1f2f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue