[Datefield] Local variable can be a garbage value in a certain circumstance.
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Tue, 11 Oct 2011 08:16:59 +0000 (17:16 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Thu, 13 Oct 2011 07:26:44 +0000 (16:26 +0900)
Change-Id: I9fd9ea1c67caf9b79119298c38f1ba3710ee73cc

src/lib/elm_datefield.c

index 4fb364f..e6ded5d 100644 (file)
@@ -669,7 +669,7 @@ _parse_format( Evas_Object *obj )
 {
    Widget_Data *wd;
    Datefield_Item *it = NULL;
-   unsigned int len, idx, location = 0;
+   unsigned int len = 0, idx, location = 0;
    char separator[MAX_SEPARATOR_LEN];
    char *fmt_ptr;
    char cur;