mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
LibRegex: Remove some else-after-returns
This commit is contained in:
parent
b674de6957
commit
a2563496f5
4 changed files with 44 additions and 44 deletions
|
@ -142,12 +142,12 @@ int regexec(const regex_t* reg, const char* string, size_t nmatch, regmatch_t pm
|
|||
}
|
||||
}
|
||||
return REG_NOERR;
|
||||
} else {
|
||||
if (nmatch && pmatch) {
|
||||
pmatch[0].rm_so = -1;
|
||||
pmatch[0].rm_eo = -1;
|
||||
pmatch[0].rm_cnt = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (nmatch && pmatch) {
|
||||
pmatch[0].rm_so = -1;
|
||||
pmatch[0].rm_eo = -1;
|
||||
pmatch[0].rm_cnt = 0;
|
||||
}
|
||||
|
||||
return REG_NOMATCH;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue