X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Ffilesystem.C;h=c58296964a91e8102962f2b9d87773173da3e147;hp=a3efa4dc7229464eb039e0a820a46fd08adb0ae7;hb=7b05ad287956f8bd00836d9b5fb39f899a5fb641;hpb=3ac8199743f244669cc87ceef9c3cd23710552f3 diff --git a/cinelerra-5.1/guicast/filesystem.C b/cinelerra-5.1/guicast/filesystem.C index a3efa4dc..c5829696 100644 --- a/cinelerra-5.1/guicast/filesystem.C +++ b/cinelerra-5.1/guicast/filesystem.C @@ -481,6 +481,7 @@ int FileSystem::scan_directory(const char *new_dir) delete new_file; } } + closedir(dirstream); return 0; } @@ -606,7 +607,7 @@ int FileSystem::parse_tildas(char *new_dir) int FileSystem::parse_directories(char *new_dir) { //printf("FileSystem::parse_directories 1 %s\n", new_dir); - if( *new_dir != '/' ) { // expand to abs path + if( *new_dir != '/' && current_dir[0] ) { // expand to abs path char string[BCTEXTLEN]; strcpy(string, current_dir); add_end_slash(string);