[PATCH 2/2] fix: initialize error var before using it
authorTaesoo Kim <taesoo@mit.edu>
Thu, 25 Oct 2012 23:33:59 +0000 (19:33 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:50:03 +0000 (09:50 -0800)
4e/f72d12f73d4f89d152fd48516122e2cc5d023e [new file with mode: 0644]

diff --git a/4e/f72d12f73d4f89d152fd48516122e2cc5d023e b/4e/f72d12f73d4f89d152fd48516122e2cc5d023e
new file mode 100644 (file)
index 0000000..bd02389
--- /dev/null
@@ -0,0 +1,86 @@
+Return-Path: <tsgatesv@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id B48BD431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 25 Oct 2012 16:33:28 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id FKBlGw3w8-RX for <notmuch@notmuchmail.org>;\r
+       Thu, 25 Oct 2012 16:33:28 -0700 (PDT)\r
+Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com\r
+       [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A8119431FD7\r
+       for <notmuch@notmuchmail.org>; Thu, 25 Oct 2012 16:33:27 -0700 (PDT)\r
+Received: by mail-qc0-f181.google.com with SMTP id x40so1058185qcp.26\r
+       for <notmuch@notmuchmail.org>; Thu, 25 Oct 2012 16:33:27 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\r
+       :references; bh=KCGGcGE5QK9cqSfuptgw7x9917v1hSa7rMIM75nvMvk=;\r
+       b=wAFHfLJjDFtR2E0GpA+7yv9KDRQKvR27eVVtfe46NH4WuFovfzzQOTPKsYvdiUF06m\r
+       ctuDDddqZe2mm3GyX3DaOck/EFCuwiEt+8yKvONlqyFEvxVsqygr+U3XddTGdUTeWrma\r
+       dJ4t2LQBAbymrNg1DwFZSJo/e94qRTcFUd4m5trOs5KHVury9wtRhBfWayL35EdsbIFe\r
+       eH8MT1B5amRGe2WwY/E9EWzRiKO6I0MhlvITSK5J8o7aZYEGlZtVjnn5EUquPzlvtd9+\r
+       EqEpLRqRmbK2ezxBO5JzyVftZA8SvBy8t26igIMKJ5WAtXlR0iA7t4Jzy2k0dEsrMQV7\r
+       zy0w==\r
+Received: by 10.49.132.38 with SMTP id or6mr12120823qeb.26.1351208007522;\r
+       Thu, 25 Oct 2012 16:33:27 -0700 (PDT)\r
+Received: from skynet (26-4-166.dynamic.csail.mit.edu. [18.26.4.166])\r
+       by mx.google.com with ESMTPS id x19sm2993871qeq.12.2012.10.25.16.33.25\r
+       (version=SSLv3 cipher=OTHER); Thu, 25 Oct 2012 16:33:26 -0700 (PDT)\r
+Sender: Taesoo Kim <tsgatesv@gmail.com>\r
+Received: by skynet (sSMTP sendmail emulation); Thu, 25 Oct 2012 19:34:46\r
+ -0400\r
+From: Taesoo Kim <taesoo@mit.edu>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/2] fix: initialize error var before using it\r
+Date: Thu, 25 Oct 2012 19:33:59 -0400\r
+Message-Id: <1351208039-32293-3-git-send-email-taesoo@mit.edu>\r
+X-Mailer: git-send-email 1.8.0\r
+In-Reply-To: <1351208039-32293-1-git-send-email-taesoo@mit.edu>\r
+References: <1351208039-32293-1-git-send-email-taesoo@mit.edu>\r
+X-Mailman-Approved-At: Thu, 25 Oct 2012 22:45:51 -0700\r
+Cc: Taesoo Kim <taesoo@mit.edu>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 25 Oct 2012 23:33:28 -0000\r
+\r
+\r
+Signed-off-by: Taesoo Kim <taesoo@mit.edu>\r
+---\r
+ notmuch-config.c | 1 +\r
+ 1 file changed, 1 insertion(+)\r
+\r
+diff --git a/notmuch-config.c b/notmuch-config.c\r
+index c95f9dd..195ddb4 100644\r
+--- a/notmuch-config.c\r
++++ b/notmuch-config.c\r
+@@ -403,6 +403,7 @@ notmuch_config_open (void *ctx,\r
+       g_error_free (error);\r
+     }\r
+ \r
++    error = NULL;\r
+     config->maildir_add_as_tag_flags =\r
+       g_key_file_get_boolean (config->key_file,\r
+                               "maildir", "add_as_tag_flags", &error);\r
+-- \r
+1.8.0\r
+\r