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;
}
notmuch_results_has_more (results);
notmuch_results_advance (results))
{
+ int first = 1;
message = notmuch_results_get (results);
fprintf (output,
notmuch_tags_has_more (tags);
notmuch_tags_advance (tags))
{
- int first = 1;
-
if (! first)
fprintf (output, " ");