[CinCV TNG] [PATCH] Fix implementation of is_root_dir()
j6t at kdbg.org
Sat Jul 22 13:38:46 CEST 2017
The function should check whether argument passed in is the root directory,
but it actually does not look at the parameter at all, but only checks the
member current_dir. Fix this to actually check the parameter. This does not
change the behavior because the function is called only twice and both
callers pass current_dir as argument anyway.
Since the function does not depend on member values anymore, make it
static. And while we are here, accept constant strings, too.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1942 bytes
Desc: not available
More information about the Cinelerra