projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3e8032
)
shared: no need to initialize variable
author
Lennart Poettering
<lennart@poettering.net>
Wed, 3 Apr 2019 14:52:19 +0000
(16:52 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 3 Apr 2019 15:27:19 +0000
(17:27 +0200)
src/shared/base-filesystem.c
patch
|
blob
|
history
diff --git
a/src/shared/base-filesystem.c
b/src/shared/base-filesystem.c
index
52460ca
..
a55b2a0
100644
(file)
--- 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)