X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-tag.c;h=3b09df995ec58005b37db4269b428e9c996e03d1;hp=9a5d3e718422068411592c8ebbb1271db9ef0eaf;hb=de74431cfeb24ca72f6dfa4df93130ba49c59219;hpb=268666a071db33c5ce6a01b052d9a19c184e10f6 diff --git a/notmuch-tag.c b/notmuch-tag.c index 9a5d3e71..3b09df99 100644 --- a/notmuch-tag.c +++ b/notmuch-tag.c @@ -247,6 +247,11 @@ notmuch_tag_command (notmuch_config_t *config, int argc, char *argv[]) fprintf (stderr, "Error: 'notmuch tag' requires at least one tag to add or remove.\n"); return 1; } + + if (*query_string == '\0') { + fprintf (stderr, "Error: notmuch tag requires at least one search term.\n"); + return 1; + } } if (notmuch_database_open (notmuch_config_get_database_path (config),