diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-07-17 02:48:53 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-07-17 02:48:53 +0200 |
commit | 32b2634edf218e250b84615bbf106b2baf42d69b (patch) | |
tree | 0bb83d278a7b1d4b8a3cf11fee04343b54ea6e3b /src/shared/util.c | |
parent | c5757cc8dbcddb3e8b13ebba4ea4b36589bfd3db (diff) |
util: make some gcc versions shut up regarding unintialized variable access
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index 15abd5046d..f56d2a2d33 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -367,7 +367,7 @@ int safe_atolli(const char *s, long long int *ret_lli) { int safe_atod(const char *s, double *ret_d) { char *x = NULL; - double d; + double d = 0; assert(s); assert(ret_d); @@ -5752,7 +5752,7 @@ int search_and_fopen_nulstr(const char *path, const char *mode, const char *sear int create_tmp_dir(char template[], char** dir_name) { int r = 0; - char *d, *dt; + char *d = NULL, *dt; assert(dir_name); |