test_genlist: Initialize internal variable.

This fixes coverity CID 1193249.
This commit is contained in:
Daniel Juyung Seo 2014-04-13 01:40:27 +09:00
parent ac10d9ac6e
commit 237d8dd624
1 changed files with 1 additions and 1 deletions

View 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);