Fixed possible null dereference for etl::multi_span operator ->

This commit is contained in:
John Wellbelove 2024-11-27 16:36:00 +00:00
parent 962264e0b1
commit 2b0690928f

View File

@ -134,7 +134,7 @@ namespace etl
//*************************************************************************
pointer operator ->()
{
return &operator*();
return p_value;
}
//*************************************************************************
@ -142,7 +142,7 @@ namespace etl
//*************************************************************************
const_pointer operator ->() const
{
return &operator*();
return p_value;
}
//*************************************************************************