[llvm-commits] CVS: llvm/test/Programs/MultiSource/Benchmarks/McCat/18-imp/pgm.c

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 16 13:40:01 PST 2003


Changes in directory llvm/test/Programs/MultiSource/Benchmarks/McCat/18-imp:

pgm.c updated: 1.1 -> 1.2

---
Log message:

Make sure all variables are properly initialized before use


---
Diffs of the changes:  (+1 -1)

Index: llvm/test/Programs/MultiSource/Benchmarks/McCat/18-imp/pgm.c
diff -u llvm/test/Programs/MultiSource/Benchmarks/McCat/18-imp/pgm.c:1.1 llvm/test/Programs/MultiSource/Benchmarks/McCat/18-imp/pgm.c:1.2
--- llvm/test/Programs/MultiSource/Benchmarks/McCat/18-imp/pgm.c:1.1	Mon May 12 13:06:07 2003
+++ llvm/test/Programs/MultiSource/Benchmarks/McCat/18-imp/pgm.c	Sun Nov 16 13:39:28 2003
@@ -179,7 +179,7 @@
 {
   int rc;
   unsigned char byte;
-  int n, c, pixel;
+  int n = 0, c, pixel;
 
   /* Open the image file for processing. */
   if ((rc = PGM_Open(img)) != PGM_OK)





More information about the llvm-commits mailing list