[algs] Fix return of hb_memset()

This commit is contained in:
Behdad Esfahbod 2023-06-26 17:19:45 -06:00
parent c2bab07391
commit b1e7e8ba2f

View file

@ -984,7 +984,7 @@ static inline void *
hb_memset (void *s, int c, unsigned int n)
{
/* It's illegal to pass NULL to memset(), even if n is zero. */
if (unlikely (!n)) return 0;
if (unlikely (!n)) return s;
return memset (s, c, n);
}