From 985ac5b57e4610e707ddbf06711385b6fcd97216 Mon Sep 17 00:00:00 2001 From: "Christopher J. Morrone" Date: Mon, 9 May 2011 19:34:51 -0700 Subject: [PATCH] LU-299 Initialize struct shrinker variable in test If the "tmp" struct in the test is uninitialized, the test will fail for that reason, rather its intended functions. Change-Id: I4b1e97e511c748155f742909d9424f228fc24545 Signed-off-by: Christopher J. Morrone Reviewed-on: http://review.whamcloud.com/522 Tested-by: Hudson Reviewed-by: Bobi Jam Tested-by: Bobi Jam Reviewed-by: Oleg Drokin --- libcfs/autoconf/lustre-libcfs.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcfs/autoconf/lustre-libcfs.m4 b/libcfs/autoconf/lustre-libcfs.m4 index 254d5c6..af8418a 100644 --- a/libcfs/autoconf/lustre-libcfs.m4 +++ b/libcfs/autoconf/lustre-libcfs.m4 @@ -676,7 +676,7 @@ AC_DEFUN([LC_SHRINKER_WANT_SHRINK_PTR], LB_LINUX_TRY_COMPILE([ #include ],[ - struct shrinker tmp; + struct shrinker tmp = {0}; tmp.shrink(NULL, 0, 0); ],[ AC_MSG_RESULT(yes) -- 1.8.3.1