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 EF99E429E32 for ; Mon, 11 Jul 2011 07:37:04 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, 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 6EUQaahXEPKv for ; Mon, 11 Jul 2011 07:37:03 -0700 (PDT) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2665F429E26 for ; Mon, 11 Jul 2011 07:37:02 -0700 (PDT) Received: by mail-ey0-f181.google.com with SMTP id 5so1380568eyh.26 for ; Mon, 11 Jul 2011 07:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=N55XI7F39VBgwk4yBF/u/gWXfAjO12O2zMerS7oZNa4=; b=I2c2nCf6krSvZaOXe3Yw0Cf3Uj0Sf/NIaLoQ0YlyhfDcYazVudCLW9WzYsZpCHrP2Q RYnBTJ7LXcT3fpXlOtii0Fgrt3uh44AmPqyeIWL4mlsfSiJp2gitfVD1zNDLnPBYBk4J Ka+mrLVWRh6Yl6VHwSBhPcHCIqYkwLUtKyP+Y= Received: by 10.213.13.220 with SMTP id d28mr1004591eba.60.1310395021755; Mon, 11 Jul 2011 07:37:01 -0700 (PDT) Received: from osdor.le-roi-du-couscous.fr ([78.222.14.116]) by mx.google.com with ESMTPS id q16sm1163418eef.41.2011.07.11.07.37.00 (version=SSLv3 cipher=OTHER); Mon, 11 Jul 2011 07:37:01 -0700 (PDT) Sender: Louis Rilling From: Louis Rilling To: Carl Worth Subject: [PATCH 1/2] tags_to_maildir_flags: Cleanup double assignement Date: Mon, 11 Jul 2011 16:36:17 +0200 Message-Id: <1310394978-11883-2-git-send-email-l.rilling@av7.net> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <87d3hzgemi.fsf@yoom.home.cworth.org> References: <87d3hzgemi.fsf@yoom.home.cworth.org> Cc: notmuch@notmuchmail.org, Austin Clements 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: Mon, 11 Jul 2011 14:37:05 -0000 The for loop right after already does the job. Signed-off-by: Louis Rilling --- lib/message.cc | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/lib/message.cc b/lib/message.cc index d993cde..64b6cf8 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -1172,8 +1172,6 @@ _new_maildir_filename (void *ctx, if (info == NULL) { info = filename + strlen(filename); } else { - flags = info + 3; - /* Loop through existing flags in filename. */ for (flags = info + 3, last_flag = 0; *flags; -- 1.7.2.5