Subject: Re: [PATCH] git-mailsplit: with maildirs try to process new/ if cur/ is empty

From: Jakub Narebski <[email-masked]>
Date: Mon, 05 Nov 2007 13:58:50 +0100

[Cc: Gerrit Pape <[email-masked]>, [email-masked]]

Gerrit Pape wrote:

> +       char *sub[] = { "cur", "new" };
[...]
> +       for (i = 0; i < 2; ++i) {

Wouldn't it be better to use sizeof(sub)/sizeof(sub[0]) or it's macro
equivalent ARRAY_SIZE(sub) instead of hardcoding 2 to avoid errors?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git