Skip to content

Commit

Permalink
Merge pull request #102 from 0branch/browse-unset
Browse files Browse the repository at this point in the history
BROWSE: Return R_UNSET rather than R_NONE.
  • Loading branch information
carls committed Feb 13, 2014
2 parents 4d9840f + 95e3481 commit 49618f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/n-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,14 +506,16 @@ static REBSER *Read_All_File(char *fname)

Check_Security(SYM_BROWSE, POL_EXEC, arg);

if (!IS_NONE(arg))
url = Val_Str_To_OS(arg);
if (IS_NONE(arg))
return R_UNSET;

url = Val_Str_To_OS(arg);

r = OS_BROWSE(url, 0);

if (r == 0) Trap1(RE_CALL_FAIL, Make_OS_Error());

return R_NONE;
return R_UNSET;
}


Expand Down

0 comments on commit 49618f9

Please sign in to comment.