mirror of https://github.com/BOINC/boinc.git
Changed deliberate segfault into an assert+return so segfault won't occur
in release code. svn path=/trunk/boinc/; revision=15432
This commit is contained in:
parent
8611ca27aa
commit
98875fe047
|
@ -126,8 +126,10 @@ void REDUCED_ARRAY_GEN::add_source_row(float* in) {
|
|||
int i, ry;
|
||||
|
||||
if (scury >= sdimy) {
|
||||
printf("too many calls to add_source_row()!\n");
|
||||
*(int*)0 = 0;
|
||||
// printf("too many calls to add_source_row()!\n");
|
||||
// Crashing is not an appropriate response in release code.
|
||||
assert(scury<sdimy);
|
||||
return;
|
||||
}
|
||||
if (rdimy == sdimy) {
|
||||
ry = scury;
|
||||
|
|
Loading…
Reference in New Issue