From 32b2634edf218e250b84615bbf106b2baf42d69b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 17 Jul 2013 02:48:53 +0200 Subject: util: make some gcc versions shut up regarding unintialized variable access --- src/shared/util.c | 4 ++-- 1 file 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); -- cgit v1.2.3-54-g00ecf