[EGIT] [core/elementary] master 01/01: example: genlist - intialize buffer array to 0

2015-10-14 Thread Amitesh Singh
ami pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=4dccb16ed10e5f9e96bb7ccce60af4e9c1492d55

commit 4dccb16ed10e5f9e96bb7ccce60af4e9c1492d55
Author: Amitesh Singh 
Date:   Wed Oct 14 20:42:39 2015 +0530

example: genlist - intialize buffer array to 0

CID: 1327346
---
 src/examples/genlist_example_05.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/examples/genlist_example_05.c 
b/src/examples/genlist_example_05.c
index d36503c..e15da74 100644
--- a/src/examples/genlist_example_05.c
+++ b/src/examples/genlist_example_05.c
@@ -20,7 +20,7 @@ static int nitems = 0;
 static char *
 _item_label_get(void *data, Evas_Object *obj, const char *part)
 {
-   char buf[256];
+   char buf[256] = {0};
Node_Data *d = data;
 
if (!strcmp(part, "elm.text"))

-- 




[EGIT] [core/elementary] master 01/01: example: genlist - intialize buffer array to 0

2015-10-14 Thread Amitesh Singh
ami pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=65f9dcf0b8bc5b3f5ccab78e6ab7961ccfa24b61

commit 65f9dcf0b8bc5b3f5ccab78e6ab7961ccfa24b61
Author: Amitesh Singh 
Date:   Wed Oct 14 20:47:46 2015 +0530

example: genlist - intialize buffer array to 0

CID: 1327347
---
 src/examples/genlist_example_05.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/examples/genlist_example_05.c 
b/src/examples/genlist_example_05.c
index e15da74..48fe589 100644
--- a/src/examples/genlist_example_05.c
+++ b/src/examples/genlist_example_05.c
@@ -75,7 +75,7 @@ _parent_content_get(void *data, Evas_Object *obj, const char 
*part)
 static char *
 _favorite_label_get(void *data, Evas_Object *obj, const char *part)
 {
-   char buf[256];
+   char buf[256] = {0};
Node_Data *d = data;
 
if (!strcmp(part, "elm.text"))

--