[CinCV TNG] [PATCH] Fix implementation of is_root_dir()

Johannes Sixt 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.

Patch attached.
-- Hannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-implementation-of-is_root_dir.patch
Type: text/x-patch
Size: 1942 bytes
Desc: not available
URL: <http://lists.cinelerra-cv.org/pipermail/cinelerra/attachments/20170722/f0a35cef/attachment.bin>

More information about the Cinelerra mailing list