Andreas Gampe suggested a different fix.

(Bionic _does_ do the malloc(0)!=0 thing, the problem is pedantic access
checking, not null dereference. So test count instead.)
1 file changed