test-journal-syslog: initialize variable

The *priority argument to syslog_parse_priority() needs to be initialized
if the last argument (with_facility) is false.

CID #1394690.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-09-25 11:34:52 +02:00
parent 8a76031152
commit 6f48815918
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ static void test_syslog_parse_identifier(const char *str,
static void test_syslog_parse_priority(const char *str, int priority, int ret) {
const char *buf = str;
int priority2, ret2;
int priority2 = 0, ret2;
ret2 = syslog_parse_priority(&buf, &priority2, false);