Skip to content

Commit

Permalink
Fixed bug not compiling on windows in r_file_globsearch()
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanpencil authored and XVilka committed Jul 26, 2018
1 parent c8be080 commit 6150481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/util/file.c
Expand Up @@ -1079,7 +1079,7 @@ R_API RList* r_file_globsearch (char *globbed_path, int maxdepth) {
glob_ptr = last_slash + 1;
if (globbed_path[0] == '~') {
char *rpath = r_str_newlen (globbed_path + 2, last_slash - globbed_path - 1);
path = r_str_home (rpath ? : "");
path = r_str_home (rpath ? rpath : "");
free (rpath);
} else {
path = r_str_newlen (globbed_path, last_slash - globbed_path + 1);
Expand Down

0 comments on commit 6150481

Please sign in to comment.