Skip to content

Commit

Permalink
Merge pull request #3 from 0branch/browse-trap
Browse files Browse the repository at this point in the history
FIX: REBNATIVE(browse) should trap on OS_BROWSE failure, not success.
  • Loading branch information
Oldes authored Jan 2, 2019
2 parents f249af5 + 5613dab commit f422724
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 @@ -516,11 +516,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 f422724

Please sign in to comment.