From 6519aff957df7a69d86ed9a00707c911d60259f6 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 20 Oct 2009 22:40:37 -0700 Subject: query: Remove the magic NOTMUCH_QUERY_ALL Using the address of a static char* was clever, but really unnecessary. An empty string is much less magic, and even easier to understand as the way to query everything from the database. --- notmuch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'notmuch.c') diff --git a/notmuch.c b/notmuch.c index 43af75d2..6be2881c 100644 --- a/notmuch.c +++ b/notmuch.c @@ -398,7 +398,7 @@ dump_command (int argc, char *argv[]) goto DONE; } - query = notmuch_query_create (notmuch, NOTMUCH_QUERY_ALL); + query = notmuch_query_create (notmuch, ""); if (query == NULL) { fprintf (stderr, "Out of memory\n"); ret = 1; -- cgit v1.2.3