Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] * remote.c (valid_fetch_refspec): remove useless if-before-free test

From: Jim Meyering <hidden>
Date: 2016-06-15 22:45:11

Alex Riesen [off-list ref] wrote:
Jim Meyering, Tue, Aug 19, 2008 20:46:30 +0200:
quoted
We removed a handful of these useless if-before-free tests
several months ago.  This change removes a new one that snuck back in.
Something used to crash in free when passed NULL. It's one of the
reasons why some cross-platform projects have xfree which does the
check (sometimes depending on platform). Admittedly, it is a long time
since I saw such a platform (some old SunOS it was, I believe).
Right.  This was discussed at length back in February:

  http://thread.gmane.org/gmane.comp.version-control.git/74187
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help