summaryrefslogtreecommitdiff
path: root/src/home
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-01-31 23:04:38 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-01-31 23:04:43 +0900
commit852640f8a223e2508f8794b9e9241033b74b105b (patch)
tree81a32f2d88835c6318d8f38ee1d3c59b717dff2e /src/home
parent9a1862bfa6cdd1352101b232a24f039b88ef4cee (diff)
downloadsystemd-852640f8a223e2508f8794b9e9241033b74b105b.tar.gz
home: add missing variable initialization
Fixes CID#1415126.
Diffstat (limited to 'src/home')
-rw-r--r--src/home/homed-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homed-manager.c b/src/home/homed-manager.c
index f4fec0e7c9..bbe227ce70 100644
--- a/src/home/homed-manager.c
+++ b/src/home/homed-manager.c
@@ -314,7 +314,7 @@ static int manager_add_home_by_record(
const char *fname) {
_cleanup_(json_variant_unrefp) JsonVariant *v = NULL;
- _cleanup_(user_record_unrefp) UserRecord *hr;
+ _cleanup_(user_record_unrefp) UserRecord *hr = NULL;
unsigned line, column;
int r, is_signed;
Home *h;