From 7e539abde7f8149287d8232500b622070bb241b9 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Tue, 12 Jun 2018 12:15:28 +0100 Subject: Fix uninitialized memory: enums have to be initialized --- include/expr/Lexer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/expr/Lexer.h b/include/expr/Lexer.h index 9319b487..290d59eb 100644 --- a/include/expr/Lexer.h +++ b/include/expr/Lexer.h @@ -70,6 +70,8 @@ namespace expr { // dump - Dump the token to stderr. void dump(); + + Token() : kind(Unknown), start(nullptr) {} }; /// Lexer - Interface for lexing tokens from a .kquery language file. -- cgit 1.4.1