fix warn reports for buffer oveeruns

also misc uninitialized vars
This commit is contained in:
AzaezelX 2023-04-26 22:29:32 -05:00
parent 1230d0d280
commit 9e036f142b
6 changed files with 11 additions and 9 deletions

View file

@ -352,8 +352,8 @@ class Journal
template<typename T>
struct MethodRep: public FuncDecl {
typename T::ObjPtr obj;
typename T::MethodPtr method;
typename T::ObjPtr obj = NULL;
typename T::MethodPtr method = NULL;
virtual bool match(VoidPtr ptr,VoidMethod func) const {
return obj == (typename T::ObjPtr)ptr && method == (typename T::MethodPtr)func;
}