Sven Verdoolaege, Fri, Oct 07, 2005 23:48:45 +0200: > On Fri, Oct 07, 2005 at 11:45:51PM +0200, Alex Riesen wrote: > > } > > + i = errno; > > close(fd); > > if (map == MAP_FAILED) > > - die("index file mmap failed (%s)", strerror(errno)); > > + die("index file mmap failed (%s)", strerror(i)); > > > > Why don't you just move the close after the test ? I don't know. > There's no point in closing if you're going to die. > > skimo Of course you're right :) I'm just blind after eight. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Sat Oct 08 09:50:51 2005
This archive was generated by hypermail 2.1.8 : 2005-10-08 09:50:54 EST