diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-01-23 11:05:51 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-01-23 11:05:51 +0100 |
| commit | 14d1e424b6a582d021c73c88e1f0c5f0962ecc9d (patch) | |
| tree | 0fdc71b6e0de2576ae330f145a51f9c016ad81a2 /pkg/ast/parser.go | |
| parent | de3e24c4b6cd0136618ce74eb025a15d4834c082 (diff) | |
pkg/compiler: allow use of empty strings
This comes up in several contexts in netfilter.
Diffstat (limited to 'pkg/ast/parser.go')
| -rw-r--r-- | pkg/ast/parser.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/ast/parser.go b/pkg/ast/parser.go index bd5650ad5..a7cfdbf02 100644 --- a/pkg/ast/parser.go +++ b/pkg/ast/parser.go @@ -419,6 +419,7 @@ func (p *parser) parseType() *Type { arg.Ident = p.lit case tokString: arg.String = p.lit + arg.HasString = true default: p.expect(tokInt, tokIdent, tokString) } |
