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:
parent
8a76031152
commit
6f48815918
|
@ -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) {
|
static void test_syslog_parse_priority(const char *str, int priority, int ret) {
|
||||||
const char *buf = str;
|
const char *buf = str;
|
||||||
int priority2, ret2;
|
int priority2 = 0, ret2;
|
||||||
|
|
||||||
ret2 = syslog_parse_priority(&buf, &priority2, false);
|
ret2 = syslog_parse_priority(&buf, &priority2, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue