aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-count.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-04-09 16:49:58 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-09 17:44:01 -0700
commit13a7b6700eeae0f0b254f248e5abb742b64cd921 (patch)
tree260a9e762fe52ecf56c0319310473761dbf78d43 /notmuch-count.c
parent74168777cba27ad0e217399de4332ad576bd9398 (diff)
notmuch count: Remove special handling of "*".
From both the implementation and from the documentation. This is handled generically in the library for all search-based commands, so count doesn't need special treatment.
Diffstat (limited to 'notmuch-count.c')
-rw-r--r--notmuch-count.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/notmuch-count.c b/notmuch-count.c
index 97242aba..39f08c6c 100644
--- a/notmuch-count.c
+++ b/notmuch-count.c
@@ -90,7 +90,8 @@ notmuch_count_command (void *ctx, int argc, char *argv[])
fprintf (stderr, "Out of memory.\n");
return 1;
}
- if (*query_str == '\0' || (*query_str == '*' && *(query_str+1) == '\0')) {
+
+ if (*query_str == '\0') {
query_str = talloc_strdup (ctx, "");
}