X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.c;h=e157f02f468583f86149032fd18b26f3f0202429;hp=a93df8235f605dc55160fe3a57ef963ac82271f7;hb=0e914d9e9646349976c16472be9e986ad4b3e29e;hpb=d29a6ec79167e87e4958d9500956668c430db4c6 diff --git a/notmuch.c b/notmuch.c index a93df823..e157f02f 100644 --- a/notmuch.c +++ b/notmuch.c @@ -384,7 +384,7 @@ dump_command (int argc, char *argv[]) output = fopen (argv[0], "w"); if (output == NULL) { fprintf (stderr, "Error opening %s for writing: %s\n", - argv[1], strerror (errno)); + argv[0], strerror (errno)); ret = 1; goto DONE; }