Revision: 57159
http://sourceforge.net/p/brlcad/code/57159
Author: brlcad
Date: 2013-08-27 01:28:37 +0000 (Tue, 27 Aug 2013)
Log Message:
-----------
cppcheck recognizes the range check and usage, check range first.
Modified Paths:
--------------
brlcad/trunk/src/adrt/master/master.c
Modified: brlcad/trunk/src/adrt/master/master.c
===================================================================
--- brlcad/trunk/src/adrt/master/master.c 2013-08-27 01:26:23 UTC (rev
57158)
+++ brlcad/trunk/src/adrt/master/master.c 2013-08-27 01:28:37 UTC (rev
57159)
@@ -473,7 +473,7 @@
* use to pass along to the slaves to associate a
project id with.
*/
i = 0;
- while (master.wid_list[i] && i < ADRT_MAX_WORKSPACE_NUM)
+ while (i < ADRT_MAX_WORKSPACE_NUM && master.wid_list[i])
i++;
/* Mark this ID as being in use. */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits