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 40500431FB6 for ; Tue, 12 Jul 2011 07:00:28 -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 8LcRUKTIqYka for ; Tue, 12 Jul 2011 07:00:27 -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 A8152429E2C for ; Tue, 12 Jul 2011 07:00:27 -0700 (PDT) Received: by mail-ey0-f181.google.com with SMTP id 5so1740488eyh.26 for ; Tue, 12 Jul 2011 07:00:27 -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=VllkA27DLrE5zbXANcxTKOgx0oghycfbIWd7fxBqLMN8ar/ia/ke/73sLkA3uI3Wo6 UiW+8EmPSt3qs4eRKr4qnFGxMy4jRopG3JSi0qnehToeZgenDLmMRXdPrGUiiun0JbIY wfYOlLVIp8M41js1uhtwTpRCfvtMwBnQOeSDc= Received: by 10.14.188.12 with SMTP id z12mr1795340eem.146.1310479227327; Tue, 12 Jul 2011 07:00:27 -0700 (PDT) Received: from osdor.le-roi-du-couscous.fr ([78.222.14.116]) by mx.google.com with ESMTPS id z49sm1538190eef.33.2011.07.12.07.00.22 (version=SSLv3 cipher=OTHER); Tue, 12 Jul 2011 07:00:25 -0700 (PDT) Sender: Louis Rilling From: Louis Rilling To: Carl Worth Subject: [PATCH 2/3] tags_to_maildir_flags: Cleanup double assignement Date: Tue, 12 Jul 2011 15:59:49 +0200 Message-Id: <1310479190-6973-3-git-send-email-l.rilling@av7.net> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1310479190-6973-1-git-send-email-l.rilling@av7.net> References: <1310479190-6973-1-git-send-email-l.rilling@av7.net> 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: Tue, 12 Jul 2011 14:00:28 -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