chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: make gcc shut up
[elogind.git]
/
util.c
diff --git
a/util.c
b/util.c
index 03c60af98daa527222c87214cb14d60edc6c1a9b..43826990cd702244cb67e5881da6a98e74f2c4b6 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-1133,7
+1133,7
@@
int close_all_fds(const int except[], unsigned n_except) {
return -errno;
while ((de = readdir(d))) {
return -errno;
while ((de = readdir(d))) {
- int fd;
+ int fd
= -1
;
if (de->d_name[0] == '.')
continue;
if (de->d_name[0] == '.')
continue;