summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/flag.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/abi/flag.go')
-rw-r--r--pkg/abi/flag.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/abi/flag.go b/pkg/abi/flag.go
index ec87c9cee..b48757da8 100644
--- a/pkg/abi/flag.go
+++ b/pkg/abi/flag.go
@@ -43,6 +43,11 @@ func (s FlagSet) Parse(val uint64) string {
flags = append(flags, "0x"+strconv.FormatUint(val, 16))
}
+ if len(flags) == 0 {
+ // Prefer 0 to an empty string.
+ return "0x0"
+ }
+
return strings.Join(flags, "|")
}