From: Jani Nikula Date: Sun, 31 Mar 2013 09:45:58 +0000 (+0300) Subject: cli: remove useless talloc_strdup X-Git-Tag: 0.16_rc1~167 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=ab65c365d56ba746282c558301104eec8c72d4bf 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. --- diff --git a/notmuch-count.c b/notmuch-count.c index 390794ff..c2f1b7db 100644 --- a/notmuch-count.c +++ b/notmuch-count.c @@ -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");