We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f7cbb8 commit a001106Copy full SHA for a001106
mcstas-comps/contrib/PSD_Detector.comp
@@ -518,9 +518,8 @@ INITIALIZE
518
FullEnergyT = E_t[nH_t-1];
519
520
EAT = (double *) malloc((nH_t+1)*sizeof(double));
521
- M1P1 = (double *) malloc((nH_p+1)*sizeof(double));
522
- if(!EAT || !M1P1) {
523
- fprintf(stderr, "PSD_Detector %s: malloc() failure EAT or M1P1 arrays. Exit!\n", NAME_CURRENT_COMP);
+ if(!EAT) {
+ fprintf(stderr, "PSD_Detector %s: malloc() failure EAT array. Exit!\n", NAME_CURRENT_COMP);
524
exit(-1);
525
}
526
EAT[0] = 0;
0 commit comments