Initialize the buffer
Initialize the char array to null character
as there is a possibility that it is not null
terminated
BUG=21063589
Change-Id: I558a41565b3e5e20aa40b5d0c5e748b204993e26
diff --git a/rild/rild.c b/rild/rild.c
index c63da38..bf9c421 100644
--- a/rild/rild.c
+++ b/rild/rild.c
@@ -200,7 +200,7 @@
#define REFERENCE_RIL_PATH "libreference-ril.so"
/* first, read /proc/cmdline into memory */
- char buffer[1024], *p, *q;
+ char buffer[1024] = {'\0'}, *p, *q;
int len;
int fd = open("/proc/cmdline",O_RDONLY);