Revision: 65263
http://sourceforge.net/p/brlcad/code/65263
Author: carlmoore
Date: 2015-06-11 15:59:19 +0000 (Thu, 11 Jun 2015)
Log Message:
-----------
only need to set errorflag to 0 in its declaration; if it's 1, we are quickly
heading out of the program
Modified Paths:
--------------
brlcad/trunk/src/libicv/crop.c
Modified: brlcad/trunk/src/libicv/crop.c
===================================================================
--- brlcad/trunk/src/libicv/crop.c 2015-06-11 15:54:28 UTC (rev 65262)
+++ brlcad/trunk/src/libicv/crop.c 2015-06-11 15:59:19 UTC (rev 65263)
@@ -34,11 +34,10 @@
size_t row;
double *p, *in_data, *out_data;
size_t widthstep_in, widthstep_out, bytes_row; /**< */
- int errorflag;
+ int errorflag = 0;
ICV_IMAGE_VAL_INT(img);
- errorflag=0;
if (xnum < 1) {
fprintf(stderr,"icv_rect : ERROR: Horizontal Cut Size\n");
errorflag=1;
@@ -49,7 +48,6 @@
}
if (errorflag) bu_exit(1,NULL);
- errorflag=0;
if (xorig+xnum > img->width) {
fprintf(stderr,"icv_rect : Cut not possible; input parameters exceed
the width.\n");
errorflag=1;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits