mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 15:25:27 +00:00
Fix a couple of warnings in the recent trailing slash commit.
This commit is contained in:
@@ -208,11 +208,12 @@ static pattern_t convert_aaregex_to_pcre(const char *aare, int anchor,
|
|||||||
* /*/foo -> should not match //foo
|
* /*/foo -> should not match //foo
|
||||||
*/
|
*/
|
||||||
#endif
|
#endif
|
||||||
char *s = sptr;
|
const char *s = sptr;
|
||||||
while (*s == '*')
|
while (*s == '*')
|
||||||
s++;
|
s++;
|
||||||
if (*s == '/' || !*s)
|
if (*s == '/' || !*s) {
|
||||||
STORE("[^/]", dptr, 4);
|
STORE("[^/]", dptr, 4);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (*(sptr + 1) == '*') {
|
if (*(sptr + 1) == '*') {
|
||||||
/* is this the first regex form we
|
/* is this the first regex form we
|
||||||
|
Reference in New Issue
Block a user