diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-07 16:39:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-07 16:39:07 +0200 |
commit | a7610064ae4fbccfcff8b91656dfee3f55d21c9c (patch) | |
tree | 207e37514f2622c2e0ef1ea54081e003bbcabc16 | |
parent | dda5a135b8311ed3be5d930a4f6f560d638813f4 (diff) |
util: make gcc shut up
-rw-r--r-- | util.c | 2 | ||||
-rw-r--r-- | util.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1133,7 +1133,7 @@ int close_all_fds(const int except[], unsigned n_except) { return -errno; while ((de = readdir(d))) { - int fd; + int fd = -1; if (de->d_name[0] == '.') continue; @@ -163,7 +163,7 @@ bool ignore_file(const char *filename); } \ type name##_from_string(const char *s) { \ type i; \ - unsigned u; \ + unsigned u = 0; \ assert(s); \ for (i = 0; i < (type)ELEMENTSOF(name##_table); i++) \ if (streq(name##_table[i], s)) \ |