mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[algs] Fix return of hb_memset()
This commit is contained in:
parent
c2bab07391
commit
b1e7e8ba2f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue