Daniel Shahaf <danie...@elego.de> writes:

> What would a better fix be?

It's hard to say which is probably why these warnings have not been
addressed so far.  The warning is a 'maybe':

../src/subversion/libsvn_fs_fs/tree.c:929:27: warning: 'directory' may be used 
uninitialized in this function [-Wmaybe-uninitialized]

so what will make it go away probably depends on various compiler
details.  A better compiler optimiser might make the warning go away.

> The following is a first sketch, it should resolve the compiler warning
> but won't solve the actual semantic bug (if there is one) here.

I believe it's a false positive and there is no bug, other than the
warning, as 'directory' has to be non-NULL if 'here' is non-NULL.

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download

Reply via email to