X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Frandom-corpus.c;h=790193d2ee3eed2f5b7edbb4b4e7f3637f6f23d4;hp=f354d4b92c9f9e82d5cdccf6aa9360c3e729dc28;hb=3fed6736a7ef8b8b1f05d0fabb136bdd3b5917ee;hpb=76fa93e2a2002940335c941e76e94d69abd71fe9 diff --git a/test/random-corpus.c b/test/random-corpus.c index f354d4b9..790193d2 100644 --- a/test/random-corpus.c +++ b/test/random-corpus.c @@ -96,7 +96,9 @@ random_utf8_string (void *ctx, size_t char_count) buf = talloc_realloc (ctx, buf, gchar, buf_size); } - randomchar = random_unichar (); + do { + randomchar = random_unichar (); + } while (randomchar == '\n'); written = g_unichar_to_utf8 (randomchar, buf + offset); @@ -158,7 +160,7 @@ main (int argc, char **argv) exit (1); } - config = notmuch_config_open (ctx, config_path, NULL); + config = notmuch_config_open (ctx, config_path, FALSE); if (config == NULL) return 1;