forked from enlightenment/efl
[config] fix static analysis issue
Summary: Fix static analysis issue Fix possible pointer mis-use in elm profile string handling @fix Test Plan: Static analysis Reviewers: cedric, jpeg, raster Reviewed By: raster Subscribers: seoz Differential Revision: https://phab.enlightenment.org/D3474
This commit is contained in:
parent
2b8c9217e8
commit
e1ca60f5c0
|
@ -1132,11 +1132,11 @@ _profile_fetch_from_conf(void)
|
|||
memcpy(_elm_profile, p, len);
|
||||
_elm_profile[len] = 0;
|
||||
free(p);
|
||||
p = strchr(_elm_profile, '/');
|
||||
if (p) *p = 0;
|
||||
}
|
||||
else free(p);
|
||||
eet_close(ef);
|
||||
p = strchr(_elm_profile, '/');
|
||||
if (p) *p = 0;
|
||||
return;
|
||||
}
|
||||
eet_close(ef);
|
||||
|
|
Loading…
Reference in New Issue