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

Reid Spencer reid at x10sys.com
Sat Nov 11 09:14:07 PST 2006



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

pgm.c updated: 1.2 -> 1.3
---
Log message:

Make this test *NOT* depend on uninitialized memory contents.


---
Diffs of the changes:  (+2 -0)

 pgm.c |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm-test/MultiSource/Benchmarks/McCat/18-imp/pgm.c
diff -u llvm-test/MultiSource/Benchmarks/McCat/18-imp/pgm.c:1.2 llvm-test/MultiSource/Benchmarks/McCat/18-imp/pgm.c:1.3
--- llvm-test/MultiSource/Benchmarks/McCat/18-imp/pgm.c:1.2	Sun Nov 16 13:39:28 2003
+++ llvm-test/MultiSource/Benchmarks/McCat/18-imp/pgm.c	Sat Nov 11 11:13:53 2006
@@ -56,6 +56,7 @@
 
   /* Clear valid bit. */
   img->valid = 0;
+  img->var = 0;
 }
 
 /*
@@ -196,6 +197,7 @@
   img->data = (char *) malloc((img->width * img->height) * sizeof(char));
   img->hist = (int *) calloc(img->maxgray + 1, sizeof(int));
   img->p = (double *) calloc(img->maxgray + 1, sizeof(double));
+  img->var = NULL;
 
   /* Skip comments. */
   fscanf(img->fp, "#%n", &n);






More information about the llvm-commits mailing list