Commit 5c2e34cb 5c2e34cbaedb5ea376e4d73676ebdcde2360f612 by Sam Roberts

Was setting debug on the mailbox before creating it...

1 parent 5887db14
......@@ -226,8 +226,7 @@ main (int argc, char *argv[])
fprintf (stderr, "mu_debug_create failed: %s\n", strerror (rc));
goto cleanup;
}
if ((rc =
mu_debug_set_level (debug, opt_debug_level)))
if ((rc = mu_debug_set_level (debug, opt_debug_level)))
{
fprintf (stderr, "mu_debug_set_level failed: %s\n", strerror (rc));
goto cleanup;
......@@ -237,7 +236,6 @@ main (int argc, char *argv[])
fprintf (stderr, "mu_debug_set_print failed: %s\n", strerror (rc));
goto cleanup;
}
mailbox_set_debug (mbox, debug);
}
/* Create, give a ticket to, and open the mailbox. */
......@@ -248,6 +246,11 @@ main (int argc, char *argv[])
goto cleanup;
}
if (debug && (rc = mailbox_set_debug (mbox, debug)))
{
fprintf (stderr, "mailbox_set_debug failed: %s\n", strerror (rc));
goto cleanup;
}
if (ticket)
{
......