Skip to content

Commit

Permalink
Do not return a dangling pointer!
Browse files Browse the repository at this point in the history
  • Loading branch information
stolk committed Apr 1, 2020
1 parent 0c6c797 commit 1c64add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extras/ConvexDecomposition/cd_wavefront.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ const char **InPlaceParser::GetArglist(char *line, int &count) // convert sourc
{
const char **ret = 0;

const char *argv[MAXARGS];
static const char *argv[MAXARGS];
int argc = 0;

char *foo = line;
Expand Down

0 comments on commit 1c64add

Please sign in to comment.