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 B8777429E2E for ; Wed, 14 Sep 2011 15:23:57 -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 Hx8tXC2RcZDr for ; Wed, 14 Sep 2011 15:23:56 -0700 (PDT) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2EB75429E35 for ; Wed, 14 Sep 2011 15:23:52 -0700 (PDT) Received: by mail-ww0-f45.google.com with SMTP id 36so2235195wwi.2 for ; Wed, 14 Sep 2011 15:23:51 -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=QsbOwFnNHwEQdIn9Npb8t57AZcATCsCIUJMmVsl4HbU=; b=RjFdFjpk5wSVgwpN3cZ8eZAhoMW+Tz47/3/rHscOxgNT+dkcM3d+QIKj7qgpR70eZi UkNHLCGq4EZeIp+utkChpX1wjdXxe+xNShleY+IrPQj9jerjKoJ9VISxtq5Dp6IlXXgL wN6mzgXVFnMepEyF6SIGy2LtkSppYjTcIgIWI= Received: by 10.216.24.93 with SMTP id w71mr430983wew.30.1316039031742; Wed, 14 Sep 2011 15:23:51 -0700 (PDT) Received: from osdor.le-roi-du-couscous.fr ([78.222.14.116]) by mx.google.com with ESMTPS id h20sm50709wbo.22.2011.09.14.15.23.50 (version=SSLv3 cipher=OTHER); Wed, 14 Sep 2011 15:23:51 -0700 (PDT) Sender: Louis Rilling From: Louis Rilling To: notmuch@notmuchmail.org Subject: [PATCH 2/4] tags_to_maildir_flags: Cleanup double assignement Date: Thu, 15 Sep 2011 00:23:19 +0200 Message-Id: <1316039001-32602-3-git-send-email-l.rilling@av7.net> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1316039001-32602-1-git-send-email-l.rilling@av7.net> References: <1316039001-32602-1-git-send-email-l.rilling@av7.net> Cc: Michal Sojka , 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: Wed, 14 Sep 2011 22:23:58 -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 cf651e5..b1b2942 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