]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch-tag: initialize with enum instead of 0
authorDavid Bremner <bremner@debian.org>
Sat, 19 Jan 2013 13:14:46 +0000 (09:14 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 19 Jan 2013 18:20:42 +0000 (14:20 -0400)
This is just a cosmetic fix to make the "type" of ret more clear.

notmuch-tag.c

index b54c55dd71428ebca229f6135d57a78e109f8e00..d9daf8fbe44a39f50ba2464cb6a057cfe372afc1 100644 (file)
@@ -97,7 +97,7 @@ tag_query (void *ctx, notmuch_database_t *notmuch, const char *query_string,
     notmuch_query_t *query;
     notmuch_messages_t *messages;
     notmuch_message_t *message;
-    int ret = 0;
+    int ret = NOTMUCH_STATUS_SUCCESS;
 
     /* Optimize the query so it excludes messages that already have
      * the specified set of tags. */