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:
parent
8c92d4bbc7
commit
f5f6e41a9e
Notes:
Lennart Poettering
2013-10-04 17:11:46 +02:00
Backport: bugfix
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user