diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-19 17:47:11 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-19 17:53:50 +0100 |
commit | 39883f622f392d8579f4428fc5a789a102efbb10 (patch) | |
tree | ba82e4a0a65f9e0fe937dfa408860b9f3d25bab6 /src/journal/journal-gatewayd.c | |
parent | ca721e36083e70709ce21376c0b89bc797e53f91 (diff) |
make gcc shut up
If -flto is used then gcc will generate a lot more warnings than before,
among them a number of use-without-initialization warnings. Most of them
without are false positives, but let's make them go away, because it
doesn't really matter.
Diffstat (limited to 'src/journal/journal-gatewayd.c')
-rw-r--r-- | src/journal/journal-gatewayd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/journal-gatewayd.c b/src/journal/journal-gatewayd.c index 5c35d8e77e..7e97a3588c 100644 --- a/src/journal/journal-gatewayd.c +++ b/src/journal/journal-gatewayd.c @@ -744,7 +744,7 @@ static int request_handler_file( static int get_virtualization(char **v) { _cleanup_bus_unref_ sd_bus *bus = NULL; - char *b; + char *b = NULL; int r; r = sd_bus_default_system(&bus); @@ -780,7 +780,7 @@ static int request_handler_machine( RequestMeta *m = connection_cls; int r; _cleanup_free_ char* hostname = NULL, *os_name = NULL; - uint64_t cutoff_from, cutoff_to, usage; + uint64_t cutoff_from = 0, cutoff_to = 0, usage; char *json; sd_id128_t mid, bid; _cleanup_free_ char *v = NULL; |