journald: fix followup comments on regex feature
authorQuentin Deslandes <qde@naccy.de>
Fri, 6 Jan 2023 08:15:55 +0000 (09:15 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 Jan 2023 13:59:31 +0000 (14:59 +0100)
commit48d85160438827c1424104315547f960ec0d6e43
treea39d805102c34555ab80314839f5379afa57e37d
parent34680637e838415204850f77c93ca6ca219abaf1
journald: fix followup comments on regex feature

Fix followup comments on PR #24058:
- Use `mempcpy_safe()`.
- Remove unused `pcre2_code` variable.
- Use `static const` when relevant.
src/core/cgroup.c
src/core/load-fragment.c
src/shared/pcre2-util.c
src/test/test-nulstr-util.c