Changeset: 9f8602e8c51d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9f8602e8c51d
Modified Files:
monetdb5/optimizer/opt_projectionpath.c
Branch: default
Log Message:
Protect against NULL pointer.
diffs (16 lines):
diff --git a/monetdb5/optimizer/opt_projectionpath.c
b/monetdb5/optimizer/opt_projectionpath.c
--- a/monetdb5/optimizer/opt_projectionpath.c
+++ b/monetdb5/optimizer/opt_projectionpath.c
@@ -236,8 +236,10 @@ OPTprojectionpathImplementation(Client c
/* inject the complete sub-path */
#ifdef DEBUG_OPT_PROJECTIONPATH
- fprintf(stderr,"#inject ");
- fprintInstruction(stderr,mb, 0, r,
LIST_MAL_ALL);
+ if (r) {
+ fprintf(stderr,"#inject ");
+ fprintInstruction(stderr,mb, 0, r,
LIST_MAL_ALL);
+ }
#endif
if ( getFunctionId(p) == projectionRef){
if( r && getModuleId(r)== algebraRef
&& ( getFunctionId(r)== projectionRef || getFunctionId(r)== projectionpathRef)
){
___
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list