From 63cbc6824da4f6b434e4aad9e63aa32a9a9a489d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 28 Jun 2016 01:54:01 -0500 Subject: Fix a "may be used uninitialized". --- toys/posix/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix') diff --git a/toys/posix/ps.c b/toys/posix/ps.c index 665fbdd4..72b56cb5 100644 --- a/toys/posix/ps.c +++ b/toys/posix/ps.c @@ -565,7 +565,7 @@ static void show_ps(struct carveup *tb) // fields that can naturally be shorter abslen = abs(field->len); sign = field->len<0 ? -1 : 1; - if (field->which<=PS_BIT || extra) olen = strlen(out); + olen = strlen(out); if (field->which<=PS_BIT && olen>abslen) { // overflow but remember by how much extra += olen-abslen; -- cgit v1.2.3