avoid benign diagnostic from error checking programs

This commit is contained in:
Jeff Hill
2000-09-14 00:34:25 +00:00
parent d727e229eb
commit 52fa8a40ff

View File

@@ -226,9 +226,9 @@ caar cacChannel::accessRights () const
return pIO->accessRights ();
}
else {
caar ar;
ar.read_access = false;
ar.write_access = false;
// static here avoids undefined memory read warning from
// error checking codes
static caar ar = { false, false };
return ar;
}
}