aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-02-09 16:49:48 (GMT)
committerElliott Hughes <enh@google.com>2018-02-09 16:49:48 (GMT)
commit4b1388149213f13fad17d2932ceb9acdd7273612 (patch)
treed47a2efaa474f0b08b25cbaf83694d4497c11cf1
parentb02120dad8b5e4e7f65d97bc73a3c2b74de0f4ee (diff)
parent912646fc08d1b5e497f5ddb9b14e994f6b44e291 (diff)
downloadandroid_external_toybox-4b1388149213f13fad17d2932ceb9acdd7273612.zip
android_external_toybox-4b1388149213f13fad17d2932ceb9acdd7273612.tar.gz
android_external_toybox-4b1388149213f13fad17d2932ceb9acdd7273612.tar.bz2
Merge remote-tracking branch 'toybox/master' into HEAD
Change-Id: Ib8bc739a3c5c68f426ff4aef793050db4a10f4a4
-rw-r--r--toys/posix/ps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/posix/ps.c b/toys/posix/ps.c
index 8ee68ad..e94902b 100644
--- a/toys/posix/ps.c
+++ b/toys/posix/ps.c
@@ -1417,7 +1417,8 @@ static void top_common(
mix.count = 0;
while (old.count || new.count) {
- struct carveup *otb = old.tb ? *old.tb : 0, *ntb = new.tb ? *new.tb : 0;
+ struct carveup *otb = old.count ? *old.tb : 0,
+ *ntb = new.count ? *new.tb : 0;
// If we just have old for this process, it exited. Discard it.
if (old.count && (!new.count || *otb->slot < *ntb->slot)) {