cli: remove useless talloc_strdup

If the condition holds, query_string_from_args() has already returned
a talloc allocated empty string. There's no need to duplicate that.
This commit is contained in:
Jani Nikula 2013-03-31 12:45:58 +03:00 committed by David Bremner
parent abd4d6b92e
commit ab65c365d5

View file

@ -71,10 +71,6 @@ notmuch_count_command (notmuch_config_t *config, int argc, char *argv[])
return 1;
}
if (*query_str == '\0') {
query_str = talloc_strdup (config, "");
}
query = notmuch_query_create (notmuch, query_str);
if (query == NULL) {
fprintf (stderr, "Out of memory\n");