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[]) ...@@ -226,8 +226,7 @@ main (int argc, char *argv[])
226 fprintf (stderr, "mu_debug_create failed: %s\n", strerror (rc)); 226 fprintf (stderr, "mu_debug_create failed: %s\n", strerror (rc));
227 goto cleanup; 227 goto cleanup;
228 } 228 }
229 if ((rc = 229 if ((rc = mu_debug_set_level (debug, opt_debug_level)))
230 mu_debug_set_level (debug, opt_debug_level)))
231 { 230 {
232 fprintf (stderr, "mu_debug_set_level failed: %s\n", strerror (rc)); 231 fprintf (stderr, "mu_debug_set_level failed: %s\n", strerror (rc));
233 goto cleanup; 232 goto cleanup;
...@@ -237,7 +236,6 @@ main (int argc, char *argv[]) ...@@ -237,7 +236,6 @@ main (int argc, char *argv[])
237 fprintf (stderr, "mu_debug_set_print failed: %s\n", strerror (rc)); 236 fprintf (stderr, "mu_debug_set_print failed: %s\n", strerror (rc));
238 goto cleanup; 237 goto cleanup;
239 } 238 }
240 mailbox_set_debug (mbox, debug);
241 } 239 }
242 240
243 /* Create, give a ticket to, and open the mailbox. */ 241 /* Create, give a ticket to, and open the mailbox. */
...@@ -247,7 +245,12 @@ main (int argc, char *argv[]) ...@@ -247,7 +245,12 @@ main (int argc, char *argv[])
247 opt_mbox ? opt_mbox : "default", strerror (rc)); 245 opt_mbox ? opt_mbox : "default", strerror (rc));
248 goto cleanup; 246 goto cleanup;
249 } 247 }
250 248
249 if (debug && (rc = mailbox_set_debug (mbox, debug)))
250 {
251 fprintf (stderr, "mailbox_set_debug failed: %s\n", strerror (rc));
252 goto cleanup;
253 }
251 254
252 if (ticket) 255 if (ticket)
253 { 256 {
......