From c8741a400d6a6208c334c5228b9f2db28401b578 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 27 May 2023 03:19:26 +0200 Subject: [PATCH] xgetXXbyYY: tfix It seems obvious that it was a typo. Link: Fixes: e73a2194b3d2 ("xgetXXbyYY: Handle DUP_FUNCTION failure") Cc: Samanta Navarro Cc: Serge Hallyn Signed-off-by: Alejandro Colomar --- libmisc/xgetXXbyYY.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmisc/xgetXXbyYY.c b/libmisc/xgetXXbyYY.c index e977657c8..78034bc0e 100644 --- a/libmisc/xgetXXbyYY.c +++ b/libmisc/xgetXXbyYY.c @@ -69,7 +69,7 @@ /* Build a result structure that can be freed by * the shadow *_free functions. */ LOOKUP_TYPE *ret_result = DUP_FUNCTION(result); - if (NULL == result) { + if (NULL == ret_result) { fprintf (log_get_logfd(), _("%s: out of memory\n"), "x" STRINGIZE(FUNCTION_NAME)); -- 2.47.2