mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
escape: add missing non-NULL parameter assertions
This commit is contained in:
parent
582843ee37
commit
0b82a6fa5d
|
@ -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…
Reference in a new issue