Skip to content

Commit

Permalink
FIX: REBNATIVE(browse) should trap on OS_BROWSE failure, not success.
Browse files Browse the repository at this point in the history
  • Loading branch information
0branch committed Apr 17, 2018
1 parent 259b252 commit 5613dab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core/n-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,11 +513,7 @@ static REBSER *Read_All_File(char *fname)

r = OS_BROWSE(url, 0);

if (r == 0) {
return R_UNSET;
} else {
Trap1(RE_CALL_FAIL, Make_OS_Error(r));
}
if (r == 0) Trap1(RE_CALL_FAIL, Make_OS_Error(r));

return R_UNSET;
}
Expand Down

0 comments on commit 5613dab

Please sign in to comment.