forked from qt-creator/qt-creator
C++: Fix crash in AlignofExpressionAST::clone()
...due to uninitialized member typeId. Fixes: QTCREATORBUG-23184 Change-Id: I00afe87b9c61a1e8edefc122b1a99635736650cb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
2
src/libs/3rdparty/cplusplus/AST.h
vendored
2
src/libs/3rdparty/cplusplus/AST.h
vendored
@@ -2415,7 +2415,7 @@ class CPLUSPLUS_EXPORT AlignofExpressionAST: public ExpressionAST
|
||||
public:
|
||||
int alignof_token = 0;
|
||||
int lparen_token = 0;
|
||||
TypeIdAST *typeId;
|
||||
TypeIdAST *typeId = nullptr;
|
||||
int rparen_token = 0;
|
||||
|
||||
public:
|
||||
|
Reference in New Issue
Block a user