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 0332C431FBC for ; Tue, 15 Jan 2013 13:54:55 -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 ClkuesRvhg61 for ; Tue, 15 Jan 2013 13:54:54 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 627CB431FAF for ; Tue, 15 Jan 2013 13:54:54 -0800 (PST) Received: by mail-la0-f41.google.com with SMTP id em20so709278lab.0 for ; Tue, 15 Jan 2013 13:54:52 -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=FwmehpgBGEH/qlIrWMqZhgwAuqfQtxK/f4ub2NDwUFE=; b=Cni5WzqH6w0aegq9acrcm0VY++KRJA38/tM5G+ANmZ/XosscecdmDl9A0p66+D9hIC QUIAF9PzCRaGaj8lMyvvmJWfa9m9uXTaqGMonOhdikKxR190/kOy5jdvr5dQeWVPzwY7 SLTqcu38/SgtctEBrYVnnkA+lzuisIzJnHT+KwJgSOx+fqyPhoMGoXjyv1RUyRMklbg5 BydLl6ztL6YzmSRx3hpDcLxrVm/olmcV31/EEif7jTVOjlQope2m1VGyEZGUltPTX5R4 HubeydLEG5qx7aVJw4b5fszn+ExJa9J3w8O2Str2ZWFdzqdAw9Sh7TENTM3pDw/qOBBW +n2w== X-Received: by 10.152.134.243 with SMTP id pn19mr86689065lab.11.1358286892904; Tue, 15 Jan 2013 13:54:52 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi. [80.223.81.27]) by mx.google.com with ESMTPS id u5sm7278410lbm.8.2013.01.15.13.54.50 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 15 Jan 2013 13:54:51 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 1/5] cli: remove useless strdup Date: Tue, 15 Jan 2013 23:54:43 +0200 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQlLZpDxGvsbcM/eeet71eKXOMYYjamZLi5TMsKP+j3IfM/910bbdTEbmdEXsARlqDGZtLBf 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: Tue, 15 Jan 2013 21:54:55 -0000 --- 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