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

david at tethera.net david at tethera.net
Wed Nov 14 18:42:38 PST 2012


From: David Bremner <bremner at 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



More information about the notmuch mailing list