1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 01:27:11 +03:00

bus: fix potentially uninitialized memory access

This commit is contained in:
Lennart Poettering 2013-10-02 19:37:11 +02:00
parent 8c92d4bbc7
commit f5f6e41a9e
Notes: Lennart Poettering 2013-10-04 17:11:46 +02:00
Backport: bugfix

View File

@ -63,7 +63,7 @@ bool object_path_is_valid(const char *p) {
bool interface_name_is_valid(const char *p) {
const char *q;
bool dot, found_dot;
bool dot, found_dot = false;
if (isempty(p))
return false;
@ -103,7 +103,7 @@ bool interface_name_is_valid(const char *p) {
bool service_name_is_valid(const char *p) {
const char *q;
bool dot, found_dot, unique;
bool dot, found_dot = false, unique;
if (isempty(p))
return false;