aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-dump.c
diff options
context:
space:
mode:
authorGravatar Jani Nikula <jani@nikula.org>2013-03-03 23:55:08 +0200
committerGravatar David Bremner <bremner@debian.org>2013-03-07 09:39:12 -0400
commite76f6517de020783d828be59f461f1d4f465c4b4 (patch)
tree9bc07e087684487f14f05bcb8e88e30452f0d0d1 /notmuch-dump.c
parentca3a4fc02287f65c3587908012d36e68df0200b1 (diff)
cli: config: make notmuch_config_open() "is new" parameter input only
We now have a notmuch_config_is_new() function to query whether a config was created or not. Change the notmuch_config_open() is_new parameter into boolean create_new to determine whether the function should create a new config if one doesn't exist. This reduces the complexity of the API.
Diffstat (limited to 'notmuch-dump.c')
-rw-r--r--notmuch-dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-dump.c b/notmuch-dump.c
index a3244e0a..845a67e2 100644
--- a/notmuch-dump.c
+++ b/notmuch-dump.c
@@ -34,7 +34,7 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[])
notmuch_tags_t *tags;
const char *query_str = "";
- config = notmuch_config_open (ctx, NULL, NULL);
+ config = notmuch_config_open (ctx, NULL, FALSE);
if (config == NULL)
return 1;