From: Lennart Poettering Date: Wed, 3 Apr 2019 14:52:19 +0000 (+0200) Subject: shared: no need to initialize variable X-Git-Tag: v242-rc3~3^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a383bf2c0dab1e9f45bd9ff4e21438d1d1c1a95;p=thirdparty%2Fsystemd.git shared: no need to initialize variable --- diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c index 52460cacad2..a55b2a017ff 100644 --- a/src/shared/base-filesystem.c +++ b/src/shared/base-filesystem.c @@ -45,8 +45,8 @@ static const BaseFilesystem table[] = { int base_filesystem_create(const char *root, uid_t uid, gid_t gid) { _cleanup_close_ int fd = -1; - int r = 0; size_t i; + int r; fd = open(root, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW); if (fd < 0)