]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-count.c
new: Wrap adding and removing messages in atomic sections.
[notmuch] / notmuch-count.c
index 77aa4338db27e2b3cdfceaff43e2233d3788bdd7..39f08c6ca94476757c5591c7a171c74c16875018 100644 (file)
@@ -90,9 +90,9 @@ notmuch_count_command (void *ctx, int argc, char *argv[])
        fprintf (stderr, "Out of memory.\n");
        return 1;
     }
+
     if (*query_str == '\0') {
-       fprintf (stderr, "Error: notmuch count requires at least one count term.\n");
-       return 1;
+       query_str = talloc_strdup (ctx, "");
     }
 
     query = notmuch_query_create (notmuch, query_str);