malloc/malloc.c: Avoid calling sbrk unnecessarily with zero
commit51a7380b8968251a49a4c5b0bc7ed1af5b0512c6
authorWill Newton <will.newton@linaro.org>
Fri, 13 Jun 2014 15:37:12 +0000 (13 16:37 +0100)
committerWill Newton <will.newton@linaro.org>
Thu, 19 Jun 2014 13:34:08 +0000 (19 14:34 +0100)
treefa60b24efaa944845bb679eb09cbdced8b6b337d
parent91b84fe588238289e734ee05cfff26482c8f56ac
malloc/malloc.c: Avoid calling sbrk unnecessarily with zero

Due to my bad review suggestion for the fix for BZ #15089 a check
was removed from systrim to prevent sbrk being called with a zero
argument. Add the check back to avoid this useless work.

ChangeLog:

2014-06-19  Will Newton  <will.newton@linaro.org>

* malloc/malloc.c (systrim): If extra is zero then return
early.
ChangeLog
malloc/malloc.c