diff mbox series

[05/13] fixes for build errors

Message ID 3b6d1f8066841e87bbbd31c55226209e54c64e03.1699871056.git.gitgitgadget@gmail.com (mailing list archive)
State New, archived
Headers show
Series Enabling z/OS workflow for git | expand

Commit Message

Haritha D Nov. 13, 2023, 10:24 a.m. UTC
From: Haritha D <harithamma.d@ibm.com>

This patch has fixes for build errors

Signed-off-by: Haritha D <harithamma.d@ibm.com>
---
 convert.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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);