Whamcloud - gitweb
LU-299 Initialize struct shrinker variable in test
[fs/lustre-release.git] / libcfs / autoconf / lustre-libcfs.m4
index 254d5c6..af8418a 100644 (file)
@@ -676,7 +676,7 @@ AC_DEFUN([LC_SHRINKER_WANT_SHRINK_PTR],
 LB_LINUX_TRY_COMPILE([
         #include <linux/mm.h>
 ],[
-        struct shrinker tmp;
+        struct shrinker tmp = {0};
         tmp.shrink(NULL, 0, 0);
 ],[
         AC_MSG_RESULT(yes)