[PATCH 1/2] notmuch-restore: remove extra increment of optind

Subject: [PATCH 1/2] notmuch-restore: remove extra increment of optind

Date: Wed, 14 Nov 2012 22:42:38 -0400

To: notmuch@notmuchmail.org

Cc: David Bremner

From: 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


Thread: