Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
check if new_data in removeDoubleQuotes function is empty
Browse files Browse the repository at this point in the history
closes analizo/analizo#120 - SIGABRT parsing mlpack project source code

Signed-off-by: Mateus Andrade <[email protected]>
Signed-off-by: Henrique Dutra <[email protected]>
  • Loading branch information
mateusandradem committed Apr 10, 2018
1 parent 7b83e60 commit d8fb68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/doxyparse/doxyparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static int isPartOfCStruct(MemberDef * md) {
std::string removeDoubleQuotes(std::string data) {
QCString new_data = QCString(data.c_str());
new_data.replace(QRegExp("\""), "");
return new_data.data();
return !new_data.isEmpty() ? new_data.data() : "";
}

std::string argumentData(Argument *argument) {
Expand Down

0 comments on commit d8fb68c

Please sign in to comment.