On Tue, 2012-01-17 at 19:48 +0100, Samuel Thibault wrote: > Svante Signell, le Tue 17 Jan 2012 19:24:40 +0100, a écrit : > > + if (!allocated) { > > + allocated = 64; > > + bname = malloc(allocated); > > + if (!bname) { > > + allocated = 0; > > + return NULL; > > + } > > This is useless: > > + bname[0] = '\0'; This was added to make valgrind happy. More about the other parts later.