X-Git-Url: https://git.cworth.org/git?p=obsolete%2Fnotmuch-old;a=blobdiff_plain;f=tag-util.c;h=92e08a1d05030099b6439f0b56568bc6a8b40bc5;hp=c5f585950921af59659dddf8d635c95ae1853a2c;hb=e8efa11da90fa47adcbc489638320d61ac98391a;hpb=b7df509fb525922aad6700e509ffce7bdf39d05e diff --git a/tag-util.c b/tag-util.c index c5f58595..92e08a1d 100644 --- a/tag-util.c +++ b/tag-util.c @@ -190,9 +190,9 @@ parse_tag_command_line (void *ctx, int argc, char **argv, *query_str = query_string_from_args (ctx, argc - i, &argv[i]); - if (*query_str == NULL || **query_str == '\0') { - fprintf (stderr, "Error: notmuch tag requires at least one search term.\n"); - return TAG_PARSE_INVALID; + if (*query_str == NULL) { + fprintf (stderr, "Out of memory.\n"); + return TAG_PARSE_OUT_OF_MEMORY; } return TAG_PARSE_SUCCESS;