]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
expire-tool --test: Fixed timestamp logging.
authorTimo Sirainen <tss@iki.fi>
Tue, 16 Jun 2009 03:14:25 +0000 (23:14 -0400)
committerTimo Sirainen <tss@iki.fi>
Tue, 16 Jun 2009 03:14:25 +0000 (23:14 -0400)
--HG--
branch : HEAD

src/plugins/expire/expire-tool.c

index 505dbcaaf07769576fd80c94a6316a291371152d..1f08d39a436d588557bdace068b3b6564bb0aaba 100644 (file)
@@ -268,11 +268,13 @@ static void expire_run(struct master_service *service, bool testrun)
                                /* no change */
                        } else if (!testrun)
                                dict_set(trans, key, new_value);
-                       else {
+                       else T_BEGIN {
                                i_info("%s: timestamp %s (%s) -> %s (%s)",
-                                      userp, value, ctime(&expire_time),
-                                      new_value, ctime(&oldest));
-                       }
+                                      userp, value,
+                                      t_strdup(ctime(&expire_time)),
+                                      new_value,
+                                      t_strdup(ctime(&oldest)));
+                       } T_END;
                }
        }
        if (testrun && userp == NULL)