Skip to content

Commit bf3eea5

Browse files
authored
Merge pull request #2534 from gforney/issue15838
output a warning message if smokeview encounters a NULL token while parsing objects, also skip over the NULL token so smokview doesn't crash
2 parents 0daf929 + 417dece commit bf3eea5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Source/shared/readobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,8 @@ int GetTokenId(char *token, int *opptr, int *num_opptr, int *num_outopptr){
10491049
int GetObjectFrameTokenLoc(char *var, sv_object_frame *frame){
10501050
int i;
10511051

1052+
assert(var!=NULL);
1053+
if(var == NULL)return -1;
10521054
for(i = 0; i < frame->nsymbols; i++){
10531055
int ii;
10541056
tokendata *toki;

0 commit comments

Comments
 (0)