[PATCH 1/5] cli: remove useless strdup

Subject: [PATCH 1/5] cli: remove useless strdup

Date: Tue, 15 Jan 2013 23:54:43 +0200

To: notmuch@notmuchmail.org

Cc:

From: Jani Nikula


---
 notmuch-count.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/notmuch-count.c b/notmuch-count.c
index 2f98128..6a9fae3 100644
--- a/notmuch-count.c
+++ b/notmuch-count.c
@@ -76,10 +76,6 @@ notmuch_count_command (void *ctx, int argc, char *argv[])
 	return 1;
     }
 
-    if (*query_str == '\0') {
-	query_str = talloc_strdup (ctx, "");
-    }
-
     query = notmuch_query_create (notmuch, query_str);
     if (query == NULL) {
 	fprintf (stderr, "Out of memory\n");
-- 
1.7.10.4


Thread: