summaryrefslogtreecommitdiff
path: root/src/lib/efl
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2020-02-14 13:15:11 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-14 13:15:55 +0900
commit9a58f4bde4ed7598d491cb571ef56ad1558d4086 (patch)
tree3d0d13adc424bffb779f0dfe19c7b0891eb3ccb0 /src/lib/efl
parent1fff2f13ed7227772208dd7d8d08e2f7b2f70a22 (diff)
gfx path: + null check for safety
Diffstat (limited to 'src/lib/efl')
-rw-r--r--src/lib/efl/interfaces/efl_gfx_path.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_path.c b/src/lib/efl/interfaces/efl_gfx_path.c
index 85be89ce71..7eb996cefc 100644
--- a/src/lib/efl/interfaces/efl_gfx_path.c
+++ b/src/lib/efl/interfaces/efl_gfx_path.c
@@ -1513,6 +1513,7 @@ _efl_gfx_path_append_svg_path(Eo *obj, Efl_Gfx_Path_Data *pd,
1513 if (pd->path_data) 1513 if (pd->path_data)
1514 free(pd->path_data); 1514 free(pd->path_data);
1515 pd->path_data = malloc(strlen(svg_path_data) + 1); 1515 pd->path_data = malloc(strlen(svg_path_data) + 1);
1516 if (!pd->path_data) goto error;
1516 strcpy(pd->path_data, svg_path_data); 1517 strcpy(pd->path_data, svg_path_data);
1517 } 1518 }
1518 1519