From: Jakub Narebski Date: Mon, 05 Nov 2007 12:58:50 GMT Subject: Re: [PATCH] git-mailsplit: with maildirs try to process new/ if cur/ is empty Message-ID: In-Reply-To: <20071105124920.17726.qmail@746e9cce42b49f.315fe32.mid.smarden.org> [Cc: Gerrit Pape , 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