notmuch dump: Fix to print spaces between tags.
authorCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2009 21:02:51 +0000 (14:02 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2009 21:02:51 +0000 (14:02 -0700)
Simple little bug here made all the tags run together.

notmuch.c

index e157f02f468583f86149032fd18b26f3f0202429..d76425213dba3ffc6d76f4da66081d19e503887c 100644 (file)
--- a/notmuch.c
+++ b/notmuch.c
@@ -411,6 +411,7 @@ dump_command (int argc, char *argv[])
         notmuch_results_has_more (results);
         notmuch_results_advance (results))
     {
+       int first = 1;
        message = notmuch_results_get (results);
 
        fprintf (output,
@@ -420,8 +421,6 @@ dump_command (int argc, char *argv[])
             notmuch_tags_has_more (tags);
             notmuch_tags_advance (tags))
        {
-           int first = 1;
-
            if (! first)
                fprintf (output, " ");