aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-20 22:40:37 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-20 22:40:37 -0700
commit6519aff957df7a69d86ed9a00707c911d60259f6 (patch)
tree7f85fc1fb047fedcafadc013022a794f363fd6d4 /notmuch.c
parentaad13c3ac947a42b3e0a1923c44a927feea827f5 (diff)
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.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c2
1 files changed, 1 insertions, 1 deletions
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;