From: Duy Nguyen Date: Fri, 19 Jun 2015 10:51:32 GMT Subject: Re: [PATCH] strbuf: stop out-of-boundary warnings from Coverity Message-ID: In-Reply-To: <319721281.628788.1434711025325.JavaMail.zimbra@ensimag.grenoble-inp.fr> On Fri, Jun 19, 2015 at 5:50 PM, Remi Galan Alfonso wrote: > Duy Nguyen writes: > >> + sb.buf[0] = 'Z'; >> + printf("%c\n", strbuf_slopbuf[0]); >> + return 0; >> startup_info = &git_startup_info; > > I might be wrong, but I definitely think that this > printf and return 0 are some debug lines that you > forgot to remove. Yes it's debug code. I hoped that if I made a mistake forcing the segfault, people would notice. -- Duy