From: david@tethera.net
To: notmuch@notmuchmail.org
Cc: David Bremner <bremner@debian.org>
Subject: [PATCH 1/2] notmuch-restore: remove extra increment of optind
Date: Wed, 14 Nov 2012 22:42:38 -0400 [thread overview]
Message-ID: <1352947359-28181-2-git-send-email-david@tethera.net> (raw)
In-Reply-To: <1352947359-28181-1-git-send-email-david@tethera.net>
From: David Bremner <bremner@debian.org>
This is left over from when the file name was a positional parameter.
---
notmuch-restore.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/notmuch-restore.c b/notmuch-restore.c
index 08d5adc..09dd691 100644
--- a/notmuch-restore.c
+++ b/notmuch-restore.c
@@ -141,7 +141,6 @@ notmuch_restore_command (unused (void *ctx), int argc, char *argv[])
input_file_name, strerror (errno));
return 1;
}
- optind++;
}
if (opt_index < argc) {
--
1.7.10.4
next prev parent reply other threads:[~2012-11-15 2:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-15 2:42 simple fixes for notmuch-restore david
2012-11-15 2:42 ` david [this message]
2012-11-15 2:42 ` [PATCH 2/2] notmuch-restore: fix error message for extra positional parameter david
2012-11-15 15:23 ` simple fixes for notmuch-restore Tomi Ollila
2012-11-15 22:25 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1352947359-28181-2-git-send-email-david@tethera.net \
--to=david@tethera.net \
--cc=bremner@debian.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).