diff options
Diffstat (limited to 'libsolidity/parsing')
-rw-r--r-- | libsolidity/parsing/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index 2b856930..2b31c385 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -119,7 +119,7 @@ ASTPointer<ImportDirective> Parser::parseImportDirective() ASTNodeFactory nodeFactory(*this); expectToken(Token::Import); ASTPointer<ASTString> path; - ASTPointer<ASTString> unitAlias; + ASTPointer<ASTString> unitAlias = make_shared<string>(); vector<pair<ASTPointer<Identifier>, ASTPointer<ASTString>>> symbolAliases; if (m_scanner->currentToken() == Token::StringLiteral) |