Skip to content

Commit

Permalink
Fix conversion of empty string in erts_convert_native_to_filename()
Browse files Browse the repository at this point in the history
  • Loading branch information
rickard-green committed May 22, 2014
1 parent a6c681c commit f19fe9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erts/emulator/beam/erl_unicode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2126,6 +2126,8 @@ Eterm erts_convert_native_to_filename(Process *p, byte *bytes)
mac = 1;
case ERL_FILENAME_UTF8:
size = strlen((char *) bytes);
if (size == 0)
return NIL;
if (erts_analyze_utf8(bytes,size,&err_pos,&num_chars,NULL) != ERTS_UTF8_OK) {
goto noconvert;
}
Expand Down

0 comments on commit f19fe9b

Please sign in to comment.