aboutsummaryrefslogtreecommitdiff
path: root/strconv.go
diff options
context:
space:
mode:
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 {