aboutsummaryrefslogtreecommitdiff
path: root/strconv.go
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-03 13:07:25 +0100
committerSimon Ser <contact@emersion.fr>2019-12-03 13:07:25 +0100
commitbe14524c3384c88f0a5b0d64c4584abcc6ae0665 (patch)
tree157663357ab0c55b98d53e7feb8be0f7849f1ff1 /strconv.go
parent33b8679f1c6b2055196536b3e3ae808195202377 (diff)
downloadalps-be14524c3384c88f0a5b0d64c4584abcc6ae0665.tar.gz
alps-be14524c3384c88f0a5b0d64c4584abcc6ae0665.zip
Display & download any message part
Diffstat (limited to 'strconv.go')
-rw-r--r--strconv.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/strconv.go b/strconv.go
index 2fb9d73..0879aac 100644
--- a/strconv.go
+++ b/strconv.go
@@ -18,6 +18,10 @@ func parseUid(s string) (uint32, error) {
}
func parsePartPath(s string) ([]int, error) {
+ if s == "" {
+ return nil, nil
+ }
+
l := strings.Split(s, ".")
path := make([]int, len(l))
for i, s := range l {