OSDN Git Service

Andreas Gampe suggested a different fix.
authorRob Landley <rob@landley.net>
Fri, 9 Feb 2018 15:03:34 +0000 (09:03 -0600)
committerRob Landley <rob@landley.net>
Fri, 9 Feb 2018 15:03:34 +0000 (09:03 -0600)
commit912646fc08d1b5e497f5ddb9b14e994f6b44e291
tree110b1c702fdbaa820633c72861da49fbf0001f1f
parent24c63d1dd238ed762297786dbd2912f0bbaf941a
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.)
toys/posix/ps.c