From: Ralf Thielow Date: Tue, 31 Jul 2012 18:55:04 GMT Subject: Re: [PATCH v2] macos: lazily initialize iconv Message-ID: In-Reply-To: <7v1ujrkc9p.fsf@alter.siamese.dyndns.org> On Tue, Jul 31, 2012 at 8:37 PM, Junio C Hamano wrote: > + /* Avoid iconv_open()/iconv_close() if there is nothing to convert */ > + for (i = 0; i < argc; i++) { > + if (has_utf8(argv[i], (size_t)-1, NULL)) > + break; > + } > + if (argc <= i) > + return; /* no utf8 found */ sorry, but "argc" can never be smaller than "i", right?