From 73c4b51939af5bc121fac3fa5d2deb61fece2053 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Fri, 15 Apr 2016 22:29:15 +0300 Subject: [PATCH] [RFC PATCH 1/5] cli: remove leftover dir variable --- f3/e1093bf010c89da119c7dd0a240eb1a2342cc4 | 108 ++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 f3/e1093bf010c89da119c7dd0a240eb1a2342cc4 diff --git a/f3/e1093bf010c89da119c7dd0a240eb1a2342cc4 b/f3/e1093bf010c89da119c7dd0a240eb1a2342cc4 new file mode 100644 index 000000000..eb268e13d --- /dev/null +++ b/f3/e1093bf010c89da119c7dd0a240eb1a2342cc4 @@ -0,0 +1,108 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id F1D106DE02CC + for ; Fri, 15 Apr 2016 12:30:45 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" +X-Spam-Flag: NO +X-Spam-Score: -0.556 +X-Spam-Level: +X-Spam-Status: No, score=-0.556 tagged_above=-999 required=5 tests=[AWL=0.164, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, + RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id ufy-RZHf56MQ for ; + Fri, 15 Apr 2016 12:30:38 -0700 (PDT) +Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com + [74.125.82.68]) by arlo.cworth.org (Postfix) with ESMTPS id B4EDA6DE00EB for + ; Fri, 15 Apr 2016 12:30:37 -0700 (PDT) +Received: by mail-wm0-f68.google.com with SMTP id n3so8629358wmn.1 + for ; Fri, 15 Apr 2016 12:30:37 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=nikula-org.20150623.gappssmtp.com; s=20150623; + h=from:to:cc:subject:date:message-id:in-reply-to:references + :in-reply-to:references; + bh=VpcGQ8cPP9eYznMScVWeCrY8fF+4rMvCa0ZuV43cWf0=; + b=07r+2+QiVjCZNL2meH8Rgb1UmDcqaDX17fTrUIxg7emBiu8Goz3D0tto8CpchS1FQM + rkXTkc79WnhsZilsuOc5fFrsNVbZsCXQx2OtrHv7A2ABDlfQzQhV7Yirs08L9ZjkoAxd + XL3UboGyNqc9lO1A9fJb1SCb2FWTqZ7bVfDySBwHzz9uSeRGNqPi8d9XmjCdW0Ugg/I7 + kKtrB+JRMtr83NuD7oWc01VncOaocYHfCfxw+Yqwky55UIaEex4KTltoXDT866JMc5fM + 0yLcfFuZ04dKR/c+hZTtEIXDxNi5RMO/eedPObWhJV3VT3Tpb3oO11tD5fkNI4sUcxn8 + HlgQ== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to + :references:in-reply-to:references; + bh=VpcGQ8cPP9eYznMScVWeCrY8fF+4rMvCa0ZuV43cWf0=; + b=JNXqURPvH8MbEfr7UJzbUzi+tleXJXad5h/pbeVIKRi6t1ysfh278eT+mTdiCYyTbK + PD0r5c1d3F7dUTU6JTPZlIpMmHGetO8KzWezPIQadgsZFRn2CSk44bzOYy1OMxbsRAS/ + 0e5NWQuxlnSfP/z5yoBtFfG0lfmbGPybNSk2/AXrge85oaggXdHCbdOfWIab6+BhrQgO + FngP+Zv9ZXNmGuxoKHfbM/jZiVfxwHQbWEaOl+OX+z9Wdj+niWMMtBQ3oiITCfpzSSxU + 00uJgEFNvh71mtJb4vGKMfJU6Pn+bXTKYXn0joirZMfa7ZfUECemrjYyMoCLy/hx/gjW + Qu7w== +X-Gm-Message-State: + AOPr4FUxItNYMtak/jfhwHAiy398loYiVHhoxKOur633kpG6LtFmZ0YkQtGqHekciN1FNA== +X-Received: by 10.194.71.171 with SMTP id w11mr26115445wju.36.1460748636193; + Fri, 15 Apr 2016 12:30:36 -0700 (PDT) +Received: from localhost (mobile-access-bcee7f-102.dhcp.inet.fi. + [188.238.127.102]) + by smtp.gmail.com with ESMTPSA id r8sm50344472wjz.34.2016.04.15.12.30.35 + (version=TLSv1/SSLv3 cipher=OTHER); + Fri, 15 Apr 2016 12:30:35 -0700 (PDT) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [RFC PATCH 1/5] cli: remove leftover dir variable +Date: Fri, 15 Apr 2016 22:29:15 +0300 +Message-Id: + +X-Mailer: git-send-email 2.1.4 +In-Reply-To: +References: +In-Reply-To: +References: +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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: Fri, 15 Apr 2016 19:30:46 -0000 + +No functional changes. +--- + notmuch-new.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/notmuch-new.c b/notmuch-new.c +index 04cb5cac092a..2d975eb5b640 100644 +--- a/notmuch-new.c ++++ b/notmuch-new.c +@@ -351,7 +351,6 @@ add_files (notmuch_database_t *notmuch, + const char *path, + add_files_state_t *state) + { +- DIR *dir = NULL; + struct dirent *entry = NULL; + char *next = NULL; + time_t fs_mtime, db_mtime; +@@ -655,8 +654,6 @@ add_files (notmuch_database_t *notmuch, + DONE: + if (next) + talloc_free (next); +- if (dir) +- closedir (dir); + if (fs_entries) { + for (i = 0; i < num_fs_entries; i++) + free (fs_entries[i]); +-- +2.1.4 + -- 2.26.2