]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/clean-ipc.c
tree-wide: avoid uninitialized warning on _cleanup_ variables
[thirdparty/systemd.git] / src / shared / clean-ipc.c
index 77fe227e36f8d5f0e625331bc39792dedd73e60d..497b0884d49f63ae8a7ac1a77d214ef044e13c33 100644 (file)
@@ -240,7 +240,7 @@ static int clean_posix_shm_internal(const char *dirname, DIR *dir, uid_t uid, gi
                 }
 
                 if (S_ISDIR(st.st_mode)) {
-                        _cleanup_closedir_ DIR *kid;
+                        _cleanup_closedir_ DIR *kid = NULL;
 
                         kid = xopendirat(dirfd(dir), de->d_name, O_NOFOLLOW|O_NOATIME);
                         if (!kid) {