logger: make code more robust for static analyzer [clang scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
ac255c2b14
commit
7241dda191
|
@ -218,6 +218,8 @@ static int pencode(char *s)
|
|||
int facility, level;
|
||||
char *separator;
|
||||
|
||||
assert(s);
|
||||
|
||||
separator = strchr(s, '.');
|
||||
if (separator) {
|
||||
*separator = '\0';
|
||||
|
|
Loading…
Reference in New Issue