diff --git a/libmisc/xgetXXbyYY.c b/libmisc/xgetXXbyYY.c index e977657c..78034bc0 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));