edje_svg_loader: Initialize char array. 05/88505/1
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 19 Sep 2016 10:46:27 +0000 (19:46 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 19 Sep 2016 10:51:07 +0000 (19:51 +0900)
Initialize char array before calling strcmp().

Change-Id: I3590760e611ca8af1e821d745c62cb90ab01c6e6

src/bin/edje/edje_svg_loader.c

index 91eabff..f556d7d 100644 (file)
@@ -1801,7 +1801,7 @@ _evas_svg_loader_xml_open_parser(Evas_SVG_Loader *loader,
    const char *attrs = NULL;
    int attrs_length = 0;
    int sz = length;
-   char tag_name[20];
+   char tag_name[20] = "";
    Factory_Method method;
    Gradient_Factory_Method gradient_method;
    Svg_Node *node = NULL, *parent;