aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-count.c
diff options
context:
space:
mode:
authorGravatar Jani Nikula <jani@nikula.org>2013-03-31 12:45:58 +0300
committerGravatar David Bremner <bremner@unb.ca>2013-04-01 09:34:44 -0400
commitab65c365d56ba746282c558301104eec8c72d4bf (patch)
tree487911361caff36588d1687340fade8c09e4f087 /notmuch-count.c
parentabd4d6b92e488109a155fdee27285e6df485c583 (diff)
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.
Diffstat (limited to 'notmuch-count.c')
-rw-r--r--notmuch-count.c4
1 files changed, 0 insertions, 4 deletions
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");