From: Christopher J. Morrone Date: Tue, 10 May 2011 02:34:51 +0000 (-0700) Subject: LU-299 Initialize struct shrinker variable in test X-Git-Tag: 2.0.61.0~19 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=985ac5b57e4610e707ddbf06711385b6fcd97216 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 --- 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)