Don't swap values for report-time. Fixes #77.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 19 Dec 2006 02:20:27 +0000 (03:20 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 19 Dec 2006 02:20:27 +0000 (03:20 +0100)
src/settings.c

index c6e06ca011804b9a9d78447a3e4888d36f1d9378..fc85a4b0e6e7a05d4fd3e0e6b2600fa29c1a75a9 100644 (file)
@@ -478,9 +478,8 @@ struct ctrlproxy_config *load_configuration(const char *dir)
        cfg->replication = g_key_file_get_string(kf, "global", "replication", NULL);
        cfg->linestack_backend = g_key_file_get_string(kf, "global", "linestack", NULL);
 
-       if (g_key_file_has_key(kf, "global", "report-time", NULL) &&
-               !g_key_file_get_boolean(kf, "global", "report-time", NULL))
-               cfg->report_time = TRUE;
+       if (g_key_file_has_key(kf, "global", "report-time", NULL))
+               cfg->report_time = g_key_file_get_boolean(kf, "global", "report-time", NULL);
 
     if (g_key_file_has_key(kf, "global", "motd-file", NULL))
                cfg->motd_file = g_key_file_get_string(kf, "global", "motd-file", NULL);