Re: [PATCH] notmuch-tag: initialize with enum instead of 0.

Subject: Re: [PATCH] notmuch-tag: initialize with enum instead of 0.

Date: Sat, 19 Jan 2013 19:29:18 +0200

To: david@tethera.net, notmuch@notmuchmail.org

Cc: David Bremner

From: Tomi Ollila


On Sat, Jan 19 2013, david@tethera.net wrote:

> From: David Bremner <bremner@debian.org>
>
> This is just a cosmetic fix to make the "type" of ret more clear.
> ---
>  notmuch-tag.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/notmuch-tag.c b/notmuch-tag.c
> index b54c55d..d9daf8f 100644
> --- a/notmuch-tag.c
> +++ b/notmuch-tag.c
> @@ -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;

LGTM.

Tomi

Thread: