mirror of https://github.com/mpv-player/mpv
Remove useless braces on if() statement.
Patch by Guillaume Lecerf <foxcore at gmail com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26993 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8d4cdcc158
commit
45509b2576
|
@ -412,9 +412,8 @@ static int open_fs(menu_t* menu, char* args) {
|
|||
path = malloc(st.st_size+1);
|
||||
path[st.st_size] = '\0';
|
||||
if ((read(path_fp, path, st.st_size) == st.st_size) && path[0] == '/'
|
||||
&& !stat(path, &st) && S_ISDIR(st.st_mode)){
|
||||
&& !stat(path, &st) && S_ISDIR(st.st_mode))
|
||||
freepath = path;
|
||||
}
|
||||
else {
|
||||
free(path);
|
||||
path = NULL;
|
||||
|
|
Loading…
Reference in New Issue