[PATCH 05/13] fixes for build errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Haritha D <harithamma.d@xxxxxxx>

This patch has fixes for build errors

Signed-off-by: Haritha D <harithamma.d@xxxxxxx>
---
 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





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux