[algs] Fix return of hb_memset()

pull/4301/head
Behdad Esfahbod 2 years ago
parent c2bab07391
commit b1e7e8ba2f
  1. 2
      src/hb-algs.hh

@ -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);
}

Loading…
Cancel
Save