mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-02 09:47:03 +03:00
escape: add missing non-NULL parameter assertions
(cherry picked from commit 0b82a6fa5d2ba94bbc1c3db4a04dfd052e1cd446)
This commit is contained in:
parent
c4e7cf2bd7
commit
bb3e44323b
@ -473,6 +473,8 @@ char* octescape(const char *s, size_t len) {
|
||||
|
||||
static char* strcpy_backslash_escaped(char *t, const char *s, const char *bad) {
|
||||
assert(bad);
|
||||
assert(t);
|
||||
assert(s);
|
||||
|
||||
while (*s) {
|
||||
int l = utf8_encoded_valid_unichar(s, SIZE_MAX);
|
||||
|
Loading…
x
Reference in New Issue
Block a user