From: Haritha D via GitGitGadget Date: Mon, 13 Nov 2023 10:24:07 GMT Subject: [PATCH 05/13] fixes for build errors Message-ID: <3b6d1f8066841e87bbbd31c55226209e54c64e03.1699871056.git.gitgitgadget@gmail.com> In-Reply-To: From: Haritha D This patch has fixes for build errors Signed-off-by: Haritha D --- convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convert.c b/convert.c index da05f6c2e51..d3f204b4c29 100644 --- a/convert.c +++ b/convert.c @@ -1315,8 +1315,8 @@ static struct attr_check *check; static const char* get_platform(void) { struct utsname uname_info; - char *result; - if(!uname_info.sysname) + char *result = NULL; + if(!uname_info.sysname[0]) { int index=0; result = (char *)malloc(strlen(uname_info.sysname)+1); -- gitgitgadget