summaryrefslogtreecommitdiffstats
path: root/src/login/logind-session.c
diff options
context:
space:
mode:
authorfangxiuning <53254947+JackFangXN@users.noreply.github.com>2020-08-29 23:21:20 +0200
committerGitHub <noreply@github.com>2020-08-29 23:21:20 +0200
commit6d95e7d9b263c94e94704e3125cb790840b76ca2 (patch)
tree576a963001421ba1926de7555540aa4665f232cb /src/login/logind-session.c
parentsrc/shared/dissect-image.c: fix build without blkdid (#16901) (diff)
downloadsystemd-6d95e7d9b263c94e94704e3125cb790840b76ca2.tar.xz
systemd-6d95e7d9b263c94e94704e3125cb790840b76ca2.zip
tree-wide: drop pointless zero initialization (#16900)
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r--src/login/logind-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index 8e8a1666ac..e323d0e6de 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -202,7 +202,7 @@ static void session_save_devices(Session *s, FILE *f) {
int session_save(Session *s) {
_cleanup_free_ char *temp_path = NULL;
_cleanup_fclose_ FILE *f = NULL;
- int r = 0;
+ int r;
assert(s);