test_genlist: Initialize internal variable.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Sat, 12 Apr 2014 16:40:27 +0000 (01:40 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Sat, 12 Apr 2014 16:40:27 +0000 (01:40 +0900)
This fixes coverity CID 1193249.

src/bin/test_genlist.c

index 10dbd9413ada99d0128251e3ddde81a572721d7b..14186a74de1c91dbe2d0bcfc8f274ebc66cd167f 100644 (file)
@@ -1023,7 +1023,7 @@ static Elm_Genlist_Item_Class itc5;
 char *gl5_text_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part)
 {
    const Testitem *tit = data;
-   char buf[256];
+   char buf[256] = { 0 };
    if (!strcmp(part, "elm.text"))
      {
         snprintf(buf, sizeof(buf), "Item mode %i", tit->mode);