Revision: 42173
http://brlcad.svn.sourceforge.net/brlcad/?rev=42173&view=rev
Author: brlcad
Date: 2011-01-12 20:01:19 +0000 (Wed, 12 Jan 2011)
Log Message:
-----------
more unset before use insanity.
Modified Paths:
--------------
brlcad/trunk/src/util/pc_test.c
brlcad/trunk/src/util/pixborder.c
brlcad/trunk/src/util/pixcount.c
brlcad/trunk/src/util/pixdsplit.c
Modified: brlcad/trunk/src/util/pc_test.c
===================================================================
--- brlcad/trunk/src/util/pc_test.c 2011-01-12 19:57:03 UTC (rev 42172)
+++ brlcad/trunk/src/util/pc_test.c 2011-01-12 20:01:19 UTC (rev 42173)
@@ -44,7 +44,6 @@
int
main(int argc, char **argv)
{
- int ret;
struct rt_wdb *fp;
struct directory *dp;
struct rt_db_internal ip;
@@ -111,7 +110,7 @@
wdb_close(fp);
- return ret;
+ return 0;
}
Modified: brlcad/trunk/src/util/pixborder.c
===================================================================
--- brlcad/trunk/src/util/pixborder.c 2011-01-12 19:57:03 UTC (rev 42172)
+++ brlcad/trunk/src/util/pixborder.c 2011-01-12 20:01:19 UTC (rev 42173)
@@ -207,6 +207,8 @@
fastf_t p, q, t;
int hue_int;
+ VSETALL(float_rgb, 0.0);
+
hue = hsv[HUE];
sat = hsv[SAT];
val = hsv[VAL];
Modified: brlcad/trunk/src/util/pixcount.c
===================================================================
--- brlcad/trunk/src/util/pixcount.c 2011-01-12 19:57:03 UTC (rev 42172)
+++ brlcad/trunk/src/util/pixcount.c 2011-01-12 20:01:19 UTC (rev 42173)
@@ -139,9 +139,9 @@
*/
struct pixel *lookup_pixel(bu_rb_tree *palette, unsigned char *color)
{
- int rc; /* Return code from bu_rb_insert() */
- struct pixel *qpp; /* The query */
- struct pixel *pp; /* Value to return */
+ int rc = 0; /* Return code from bu_rb_insert() */
+ struct pixel *qpp = NULL; /* The query */
+ struct pixel *pp = NULL; /* Value to return */
#if 0
bu_log("lookup_pixel(");
Modified: brlcad/trunk/src/util/pixdsplit.c
===================================================================
--- brlcad/trunk/src/util/pixdsplit.c 2011-01-12 19:57:03 UTC (rev 42172)
+++ brlcad/trunk/src/util/pixdsplit.c 2011-01-12 20:01:19 UTC (rev 42173)
@@ -72,7 +72,7 @@
int dwidth; /* doubles/pixel (in bytes) */
int pwidth; /* bytes/pixel, total */
int num;
- int infd; /* File descriptor */
+ int infd = 0; /* File descriptor */
int cfd = -1; /* " " */
int dfd = -1; /* " " */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits