Valgrind doesn't understand that the kernel will be initializing the
struct termios and struct loop_info64 structures. Since they occur in
functions which are not in the hot path, preinitialize to zero to
prevent valgrind from producing a huge number of false positives.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
static int yes_answers;
#ifdef HAVE_TERMIOS_H
- struct termios termios, tmp;
+ struct termios termios = {0, }, tmp;
tcgetattr (0, &termios);
tmp = termios;
dev_t file_dev, ino_t file_ino)
{
#if defined(HAVE_LINUX_LOOP_H) && defined(HAVE_LINUX_MAJOR_H)
- struct loop_info64 loopinfo;
+ struct loop_info64 loopinfo = {0, };
int loop_fd, ret;
if (major(mnt_rdev) == LOOP_MAJOR) {