aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-05-08 12:14:10 +0200
committerBjörn Gustavsson <[email protected]>2015-05-08 12:14:10 +0200
commitff067a0dd4b596120f383f6637be7745150bc106 (patch)
tree85fe8594c0f8cf3ff5361e55cfd15ec477eacaa3 /lib/stdlib/src
parent52ecefa58e47b0a86d814152608ec23c4147fa1f (diff)
parentfd9525a6764e3aa0c29e6456ddaf75035559ebd5 (diff)
downloadotp-ff067a0dd4b596120f383f6637be7745150bc106.tar.gz
otp-ff067a0dd4b596120f383f6637be7745150bc106.tar.bz2
otp-ff067a0dd4b596120f383f6637be7745150bc106.zip
Merge branch 'bjorn/stdlib/fix-filename-split/OTP-12716'
* bjorn/stdlib/fix-filename-split/OTP-12716: Correct filename:split(<<"">>)
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/filename.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/filename.erl b/lib/stdlib/src/filename.erl
index 632af17e2a..68bd4f71cc 100644
--- a/lib/stdlib/src/filename.erl
+++ b/lib/stdlib/src/filename.erl
@@ -648,7 +648,7 @@ split(Name0) ->
unix_splitb(Name) ->
L = binary:split(Name,[<<"/">>],[global]),
LL = case L of
- [<<>>|Rest] ->
+ [<<>>|Rest] when Rest =/= [] ->
[<<"/">>|Rest];
_ ->
L