Update OpenDDLParser.cpp

pull/3569/head
ihsinme 2021-01-06 16:52:28 +03:00 committed by GitHub
parent 177304bb7c
commit e1052f421b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -527,10 +527,8 @@ char *OpenDDLParser::parseName(char *in, char *end, Name **name) {
in = parseIdentifier(in, end, &id); in = parseIdentifier(in, end, &id);
if (id) { if (id) {
currentName = new Name(ntype, id); currentName = new Name(ntype, id);
if (currentName) {
*name = currentName; *name = currentName;
} }
}
return in; return in;
} }