From 11df806a7c56626ee92eeb433ba9deaa51faa9c4 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Thu, 26 Sep 2019 00:00:00 -0500 Subject: [PATCH] library: correct one reference typo in that api This patch will just correct an oops introduced in the commit shown below. Thank goodness both 'str' & 'strv' occupy the same storage location in that result union. Reference(s): . standardize 'errno' management commit 06be33b43e5ff3f2658e77ef79441ac2e970cfd7 Signed-off-by: Jim Warner --- proc/pids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc/pids.c b/proc/pids.c index 93cab710..0822a133 100644 --- a/proc/pids.c +++ b/proc/pids.c @@ -133,7 +133,7 @@ static void freNAME(strv) (struct pids_result *R) { freNAME(strv)(R); \ if (NULL != P-> x) { R->result.strv = P-> x; P-> x = NULL; } \ else { R->result.strv = vectorize_this_str("[ duplicate " STRINGIFY(e) " ]"); \ - if (!R->result.str) I->seterr = 1; } } + if (!R->result.strv) I->seterr = 1; } } setDECL(noop) { (void)I; (void)R; (void)P; }