[PATCH 05/13] fixes for build errors
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 --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