explicitly check for nullptr

This commit is contained in:
conrad
2022-09-13 11:14:21 +10:00
parent f77132b829
commit d7367f6332
+1 -1
View File
@@ -40,7 +40,7 @@ arrayops::fill_zeros(eT* dest, const uword n_elem)
{
typedef typename get_pod_type<eT>::result pod_type;
if(n_elem == 0) { return; }
if( (n_elem == 0) || (dest == nullptr) ) { return; }
if(std::numeric_limits<eT>::is_integer || std::numeric_limits<pod_type>::is_iec559)
{