projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plug leaks, leaker tweaks, lang for effect info, c41 spiffs, wm probe tweaks
[goodguy/history.git]
/
cinelerra-5.1
/
guicast
/
filesystem.C
diff --git
a/cinelerra-5.1/guicast/filesystem.C
b/cinelerra-5.1/guicast/filesystem.C
index a3efa4dc7229464eb039e0a820a46fd08adb0ae7..c58296964a91e8102962f2b9d87773173da3e147 100644
(file)
--- 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;
}
}
delete new_file;
}
}
+ closedir(dirstream);
return 0;
}
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);
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);
char string[BCTEXTLEN];
strcpy(string, current_dir);
add_end_slash(string);