From: Jani Nikula Date: Fri, 10 Jan 2014 20:23:09 +0000 (+0200) Subject: [PATCH] cli: initialize quiet variable in compact X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e9b0e24a6363bef2045a0bc3f2a72c4b7862d85;p=notmuch-archives.git [PATCH] cli: initialize quiet variable in compact --- diff --git a/2f/0cd182b3a3838e3ce56fd624a662bdb510ff77 b/2f/0cd182b3a3838e3ce56fd624a662bdb510ff77 new file mode 100644 index 000000000..481924bf5 --- /dev/null +++ b/2f/0cd182b3a3838e3ce56fd624a662bdb510ff77 @@ -0,0 +1,84 @@ +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 31BF4431FBD + for ; Fri, 10 Jan 2014 12:23:24 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[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 AEfWcf1usgDL for ; + Fri, 10 Jan 2014 12:23:17 -0800 (PST) +Received: from mail-ea0-f169.google.com (mail-ea0-f169.google.com + [209.85.215.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 7719F431FBC + for ; Fri, 10 Jan 2014 12:23:17 -0800 (PST) +Received: by mail-ea0-f169.google.com with SMTP id l9so1903471eaj.0 + for ; Fri, 10 Jan 2014 12:23:14 -0800 (PST) +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; + bh=CMimnpmKVYUsWWlatOtUZAxjYGcprcbGYgTw5jxb7us=; + b=RIgwzpsGgPu98rEfn4b+0EEEeMA1qh/+Ccn+BcQXQF14bgDBnXtX5+xtOnCsufybat + lkbaM3wCTvuOUxJouwUEK0ZBqkE/pcrD4JAcQxZOiv83KDIJkUsczZZ1V4br5AAdoCOl + Pbj4MuCRP/Dx+1f5oFpFS+gVFhYfm8jmFc/zivf2iAxdj07WNRVo+23htJUrG561KP8Q + XhNHR1i6gpyKkEgktDMqNy4FeUP7qszjeV+D9h2gQfSBpODGFjUhKXaq+QacKHwTpuTM + XOvHpg60cZlNj0/vkbtM7NAUcZbnEW7fPzbBbosfVcgES8ME4OSxY0Dl82VLc1ogR/Qx + YT9w== +X-Gm-Message-State: + ALoCoQmkwJtVFvH7S3r28Tr2Gyx93+bifS/VClHrMKxV60gHqMtQbgUYI71LTnsbVjR87eF8tdIv +X-Received: by 10.15.52.73 with SMTP id o49mr11960335eew.60.1389385393520; + Fri, 10 Jan 2014 12:23:13 -0800 (PST) +Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi. + [88.195.111.91]) + by mx.google.com with ESMTPSA id p45sm17318129eeg.1.2014.01.10.12.23.11 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Fri, 10 Jan 2014 12:23:12 -0800 (PST) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH] cli: initialize quiet variable in compact +Date: Fri, 10 Jan 2014 22:23:09 +0200 +Message-Id: <1389385389-1005-1-git-send-email-jani@nikula.org> +X-Mailer: git-send-email 1.8.5.2 +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: Fri, 10 Jan 2014 20:23:24 -0000 + +Surprisingly there's no compiler warning! +--- + notmuch-compact.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/notmuch-compact.c b/notmuch-compact.c +index 8b820c0..6c59093 100644 +--- a/notmuch-compact.c ++++ b/notmuch-compact.c +@@ -32,7 +32,7 @@ notmuch_compact_command (notmuch_config_t *config, int argc, char *argv[]) + const char *path = notmuch_config_get_database_path (config); + const char *backup_path = NULL; + notmuch_status_t ret; +- notmuch_bool_t quiet; ++ notmuch_bool_t quiet = FALSE; + int opt_index; + + notmuch_opt_desc_t options[] = { +-- +1.8.5.2 +