From 98875fe0478a276139db45a70546fcc79c98756d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 19 Jun 2008 01:13:51 +0000 Subject: [PATCH] Changed deliberate segfault into an assert+return so segfault won't occur in release code. svn path=/trunk/boinc/; revision=15432 --- api/reduce_main.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/reduce_main.C b/api/reduce_main.C index a1e12eed38..aaeb331656 100644 --- a/api/reduce_main.C +++ b/api/reduce_main.C @@ -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