mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
shared: no need to initialize variable
This commit is contained in:
parent
b3e8032bb4
commit
8a383bf2c0
@ -45,8 +45,8 @@ static const BaseFilesystem table[] = {
|
|||||||
|
|
||||||
int base_filesystem_create(const char *root, uid_t uid, gid_t gid) {
|
int base_filesystem_create(const char *root, uid_t uid, gid_t gid) {
|
||||||
_cleanup_close_ int fd = -1;
|
_cleanup_close_ int fd = -1;
|
||||||
int r = 0;
|
|
||||||
size_t i;
|
size_t i;
|
||||||
|
int r;
|
||||||
|
|
||||||
fd = open(root, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW);
|
fd = open(root, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user