Revision: 42103
http://brlcad.svn.sourceforge.net/brlcad/?rev=42103&view=rev
Author: brlcad
Date: 2011-01-12 00:32:35 +0000 (Wed, 12 Jan 2011)
Log Message:
-----------
init vars. potential for function_num and test_case_line_num to be accessed
without initialization
Modified Paths:
--------------
brlcad/trunk/src/libbn/bntester.c
Modified: brlcad/trunk/src/libbn/bntester.c
===================================================================
--- brlcad/trunk/src/libbn/bntester.c 2011-01-12 00:05:48 UTC (rev 42102)
+++ brlcad/trunk/src/libbn/bntester.c 2011-01-12 00:32:35 UTC (rev 42103)
@@ -136,9 +136,9 @@
main(int argc, char **argv)
{
char buf[BUFSIZ];
- FILE *fp_in;
- FILE *stream;
- char *endp;
+ FILE *fp_in = NULL;
+ FILE *stream = NULL;
+ char *endp = NULL;
unsigned long line_num = 0;
unsigned long failed_cnt = 0;
unsigned long bomb_cnt = 0;
@@ -153,16 +153,16 @@
int ret = 0;
/* command line parameters */
- char input_file_name[BUFSIZ];
- char output_file_name[BUFSIZ];
- unsigned long test_case_line_num;
- unsigned long function_num;
+ char input_file_name[BUFSIZ] = {0};
+ char output_file_name[BUFSIZ] = {0};
+ unsigned long test_case_line_num = 0;
+ unsigned long function_num = 0;
/* function parameter arrays */
- int i[50];
- long l[50];
- double d[50];
- unsigned long u[50];
+ int i[50] = {0};
+ long l[50] = {0};
+ double d[50] = {0.0};
+ unsigned long u[50] = {0};
/* boolean variables */
int input_file_name_defined = 0;
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