SOURCES: stress-fix_build.patch (NEW) - fix build: `ptr' might be ...

darekr darekr at pld-linux.org
Fri Jul 7 01:32:10 CEST 2006


Author: darekr                       Date: Thu Jul  6 23:32:10 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix build: `ptr' might be used uninitialized

---- Files affected:
SOURCES:
   stress-fix_build.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/stress-fix_build.patch
diff -u /dev/null SOURCES/stress-fix_build.patch:1.1
--- /dev/null	Fri Jul  7 01:32:10 2006
+++ SOURCES/stress-fix_build.patch	Fri Jul  7 01:32:05 2006
@@ -0,0 +1,11 @@
+--- stress-0.18.8.orig/src/stress.c	2006-07-07 01:19:28.000000000 +0200
++++ stress-0.18.8/src/stress.c	2006-07-07 01:24:50.000000000 +0200
+@@ -481,7 +481,7 @@
+ hogvm (long long bytes, long long stride, long long hang, int keep)
+ {
+   long long i;
+-  char *ptr;
++  char *ptr=NULL;
+   int do_malloc = 1;
+ 
+   while (1)
================================================================


More information about the pld-cvs-commit mailing list