Revision: 77508
http://sourceforge.net/p/brlcad/code/77508
Author: starseeker
Date: 2020-10-19 22:11:04 +0000 (Mon, 19 Oct 2020)
Log Message:
-----------
Check for null next and prev entries before doing access. Still not sure why
the ninja multiconfig Release build was hitting this when nothing else does...
Modified Paths:
--------------
brlcad/branches/thirdparty_rework/src/superbuild/stepcode/src/clstepcore/complexSupport.h
Modified:
brlcad/branches/thirdparty_rework/src/superbuild/stepcode/src/clstepcore/complexSupport.h
===================================================================
---
brlcad/branches/thirdparty_rework/src/superbuild/stepcode/src/clstepcore/complexSupport.h
2020-10-19 19:26:26 UTC (rev 77507)
+++
brlcad/branches/thirdparty_rework/src/superbuild/stepcode/src/clstepcore/complexSupport.h
2020-10-19 22:11:04 UTC (rev 77508)
@@ -208,19 +208,19 @@
// but all we need.
EntList * firstNot( JoinType );
EntList * nextNot( JoinType j ) {
- return next->firstNot( j );
+ return (next) ? next->firstNot( j ) : NULL;
}
EntList * firstWanted( MatchType );
EntList * nextWanted( MatchType mat ) {
- return next->firstWanted( mat );
+ return (next) ? next->firstWanted( mat ) : NULL;
}
EntList * lastNot( JoinType );
EntList * prevNot( JoinType j ) {
- return prev->lastNot( j );
+ return (prev) ? prev->lastNot( j ) : NULL;
}
EntList * lastWanted( MatchType );
EntList * prevWanted( MatchType mat ) {
- return prev->lastWanted( mat );
+ return (prev) ? prev->lastWanted( mat ) : NULL;
}
JoinType join;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits