Fix variable r set but not used in fpath.cpp