diff options
author | insomniac <insomniacslk@users.noreply.github.com> | 2018-08-01 17:59:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 17:59:08 +0100 |
commit | 0f1b0b63aa938c56794e19e5c360d54dc02fd62a (patch) | |
tree | 5a381bbcf825e23f8dd51d2e9da03879116cfbb4 /dhcpv4/option_userclass.go | |
parent | 7a288d71a3d42f5d0ea83d33a5157d56fe40c326 (diff) | |
parent | a6ecc33c23d061098e9a2bf4d9d2d4c0a710406b (diff) |
Add support for modifiers to dhcpv4 (#102)
Diffstat (limited to 'dhcpv4/option_userclass.go')
-rw-r--r-- | dhcpv4/option_userclass.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/option_userclass.go b/dhcpv4/option_userclass.go index 1505dbb..307a128 100644 --- a/dhcpv4/option_userclass.go +++ b/dhcpv4/option_userclass.go @@ -39,7 +39,7 @@ func (op *OptUserClass) Length() int { } func (op *OptUserClass) String() string { - ucStrings := make([]string, len(op.UserClasses)) + ucStrings := make([]string, 0, len(op.UserClasses)) for _, uc := range op.UserClasses { ucStrings = append(ucStrings, string(uc)) } |