summaryrefslogtreecommitdiff
path: root/src/timedate/timedated.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-18 00:48:00 +0200
committerLennart Poettering <lennart@poettering.net>2013-10-18 00:49:01 +0200
commit7e9cf16c20cd1bca2ba6afb072ef84090cbf5283 (patch)
tree980930b24b5ab030766bc2332ac4279fa710f39f /src/timedate/timedated.c
parent66a4c743c070761ee8696aa6302445fecf358441 (diff)
timedated: disable debug logging
Diffstat (limited to 'src/timedate/timedated.c')
-rw-r--r--src/timedate/timedated.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index 48c6a132e7..61f8fc55b5 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -63,7 +63,7 @@ static void context_reset(Context *c) {
static void context_free(Context *c, sd_bus *bus) {
assert(c);
- free(c->zone);
+ context_reset(c);
bus_verify_polkit_async_registry_free(bus, c->polkit_registry);
}
@@ -525,6 +525,10 @@ static int method_set_timezone(sd_bus *bus, sd_bus_message *m, void *userdata) {
char *t;
int r;
+ assert(bus);
+ assert(m);
+ assert(c);
+
r = sd_bus_message_read(m, "sb", &z, &interactive);
if (r < 0)
return sd_bus_reply_method_errno(bus, m, r, NULL);
@@ -837,7 +841,6 @@ int main(int argc, char *argv[]) {
int r;
log_set_target(LOG_TARGET_AUTO);
- log_set_max_level(LOG_DEBUG);
log_parse_environment();
log_open();