From b124ecc335305dd5a2672aed15cf109ebc96ec64 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Tue, 31 Oct 2017 07:39:42 +0100
Subject: [PATCH] fix uninitialized variable

---
 alib2cli/src/parser/Parser.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/alib2cli/src/parser/Parser.cpp b/alib2cli/src/parser/Parser.cpp
index 0b3c981271..8707da1458 100644
--- a/alib2cli/src/parser/Parser.cpp
+++ b/alib2cli/src/parser/Parser.cpp
@@ -271,8 +271,8 @@ void Parser::result ( std::shared_ptr < StatementList > & list ) {
 }
 
 std::pair < bool, bool > Parser::introspect_cast_from_to ( ) {
-	bool from;
-	bool to;
+	bool from = false;
+	bool to = false;
 	while ( check ( cli::Lexer::TokenType::COLON_SIGN ) ) {
 		match ( cli::Lexer::TokenType::COLON_SIGN );
 		if ( check_nonreserved_kw ( "from" ) ) {
-- 
GitLab