fix build error
Change-Id: I9c1f8554c90443a16a877f7c06d1ea9f7bf21bfc
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
tdm_display_enable_dump(tdm_private_display *private_display, const char *dump_str, char *reply, int *len)
{
char temp[TDM_PATH_LEN] = {0,}, temp2[TDM_PATH_LEN] = {0,};
- char *path, *path2;
+ char *path = NULL, *path2;
char *arg;
char *end;
TDM_INFO("dump... '%s'", dump_str);
done:
- free(path);
+ if (path)
+ free(path);
+
return TDM_ERROR_NONE;
}