From 14d1e424b6a582d021c73c88e1f0c5f0962ecc9d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 23 Jan 2018 11:05:51 +0100 Subject: pkg/compiler: allow use of empty strings This comes up in several contexts in netfilter. --- pkg/ast/parser.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/ast/parser.go') 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) } -- cgit mrf-deployment