Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2CC7A431FCF for ; Sat, 9 Mar 2013 07:12:40 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11N-nRnnnyL3 for ; Sat, 9 Mar 2013 07:12:39 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 4E78B431FB6 for ; Sat, 9 Mar 2013 07:12:35 -0800 (PST) Received: by mail-la0-f54.google.com with SMTP id gw10so2628509lab.27 for ; Sat, 09 Mar 2013 07:12:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=qlwEmyzTQ/fEGH4dIGK3mbLvTv7qVw2B4MA80tcNuIQ=; b=MoAhvbmnhtTtZt3oVcS42eqDV2jCI8nRB3sQDaqocUyhcZN4FD15tW/1ycUZZQVz9w mSk/KZjR8u+Ot7RcY0QTWYevXPqnmNnWBrbLQR4B7sg8EaENTOt1zk12GT82aqtncUyp GDu53R7cUizhHnhOHL6D8RWewWOVZOfwqgvGYqlYln6ZiOVhIYao5RsAajtZzi+tktiC 0Y8Gjwn5xsT2ddT4oTTue6adU+ecc6NZs/mBR7QCqrBfZfX5zFTDmjO1Ygy/N4xEZxh5 QLWrEP0BbXinHAgiJ7VVT08HVGv47WGwmYYwg3d3kJxwXeqPxYTlAkul5yvxTVPRoNPA yOEw== X-Received: by 10.152.45.140 with SMTP id n12mr5200834lam.36.1362841953846; Sat, 09 Mar 2013 07:12:33 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi. [80.223.81.27]) by mx.google.com with ESMTPS id xw14sm4275576lab.6.2013.03.09.07.12.31 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 09 Mar 2013 07:12:32 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v2 1/6] cli: remove useless strdup Date: Sat, 9 Mar 2013 17:12:21 +0200 Message-Id: <2fa696c5cafca314c124c55fe08c672bab2bf818.1362841844.git.jani@nikula.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQkNtiU8Qsa1jCFS5t/kMtg8pNDwSfu5vqyYHQQGj7k9iubCvEsxf6obWS68RBRp/ZFonrVK X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Mar 2013 15:12:40 -0000 --- notmuch-count.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/notmuch-count.c b/notmuch-count.c index 390794f..c2f1b7d 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"); -- 1.7.10.4