X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-count.c;h=39f08c6ca94476757c5591c7a171c74c16875018;hp=97242abaa778b00764264a0c396e65f6be75e188;hb=3b24b396c4c9178603dec5380b4e89f6795dee1f;hpb=b15a03fafc2e313264519f030e45ea203af508e2 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, ""); }