Blame SOURCES/openscap-1.3.7-PR-1861-failed-to-check-available-memory.patch

f79193
From 12f9c02a612bb1687676b74a4739126b1913b1fe Mon Sep 17 00:00:00 2001
f79193
From: Ajay Nair <ajaynair59@gmail.com>
f79193
Date: Mon, 9 May 2022 13:31:47 -0400
f79193
Subject: [PATCH] Reset errno before call to strtoll
f79193
f79193
---
f79193
 src/common/memusage.c | 2 ++
f79193
 1 file changed, 2 insertions(+)
f79193
f79193
diff --git a/src/common/memusage.c b/src/common/memusage.c
f79193
index c6755f21f1..ffa70b662b 100644
f79193
--- a/src/common/memusage.c
f79193
+++ b/src/common/memusage.c
f79193
@@ -71,6 +71,8 @@ static int read_common_sizet(void *szp, char *strval)
f79193
 		return (-1);
f79193
 
f79193
 	*end = '\0';
f79193
+
f79193
+	errno = 0;
f79193
 	*(size_t *)szp = strtoll(strval, NULL, 10);
f79193
 
f79193
 	if (errno == EINVAL ||