Re: [PATCH] git-mailsplit: with maildirs try to process new/ if cur/ is empty
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Nov 5, 2007, 12:58 UTC
- Message-ID
- <fgn429$gs9$1@ger.gmane.org>
- In-Reply-To
- <20071105124920.17726.qmail@746e9cce42b49f.315fe32.mid.smarden.org>
[Cc: Gerrit Pape <pape@smarden.org>, git@vger.kernel.org]
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