src/medit/persp.c:68: error: NULL_DEREFERENCE pointer `pp` last assigned on line 65 could be null and is dereferenced at line 68, column 5. Showing all 15 steps of the trace src/medit/persp.c:50:1: start of procedure initPersp() 48. 49. 50. > pPersp initPersp(pPersp p,float dmax) { 51. pPersp pp; 52. src/medit/persp.c:53:8: Taking false branch 51. pPersp pp; 52. 53. if ( p ) { ^ 54. p->fovy = 35.0f; 55. p->rubber = 0; src/medit/persp.c:65:5: 63. } 64. else { 65. > pp = (pPersp)M_calloc(1,sizeof(struct sperspective),"persp"); 66. assert(pp); 67. src/libMesh/memory.c:123:1: start of procedure M_calloc() 121. elsize bytes, and initializes the space to zeros. 122. Actual amount of space allocated is >= nelem * elsize bytes. */ 123. > void *M_calloc(size_t nelem, size_t elsize,char *call) { 124. int i; 125. src/libMesh/memory.c:127:9: Taking true branch 125. 126. /* check if first call */ 127. if ( !mstack ) { ^ 128. mstack = (Memstack *)calloc((1+MAXMEM),sizeof(Memstack)); 129. assert(mstack); src/libMesh/memory.c:128:5: 126. /* check if first call */ 127. if ( !mstack ) { 128. > mstack = (Memstack *)calloc((1+MAXMEM),sizeof(Memstack)); 129. assert(mstack); 130. for (i=1; i for (i=1; i cur = 1; 133. stack = 0; 134. } src/libMesh/memory.c:133:5: 131. mstack[i].nxt = i+1; 132. cur = 1; 133. > stack = 0; 134. } 135. src/libMesh/memory.c:137:8: Taking false branch 135. 136. /* store pointer, size */ 137. if ( stack < MAXMEM ) { ^ 138. mstack[cur].ptr = calloc(nelem,elsize); 139. if ( !mstack[cur].ptr ) return(0); src/libMesh/memory.c:156:5: 154. } 155. else { 156. > fprintf(stderr,"M_calloc: unable to allocate %10zd bytes. table full\n", 157. nelem*elsize); 158. return(0); src/libMesh/memory.c:158:5: 156. fprintf(stderr,"M_calloc: unable to allocate %10zd bytes. table full\n", 157. nelem*elsize); 158. > return(0); 159. } 160. } src/libMesh/memory.c:160:1: return from a call to M_calloc 158. return(0); 159. } 160. > } 161. 162. /* Changes the size of the block pointed to by ptr to size bytes src/medit/persp.c:68:5: 66. assert(pp); 67. 68. > pp->fovy = 35.0f; 69. pp->rubber = 0; 70. pp->rubix = pp->rubfx = 0;