forked from enlightenment/efl
eina-bt: Fix Coverity CID1297405 (dereference before null check)
@fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
12fa5f5349
commit
d2bc216886
|
@ -50,7 +50,7 @@ struct _Bt
|
||||||
static void
|
static void
|
||||||
path_split(const char *path, char **dir, char **file)
|
path_split(const char *path, char **dir, char **file)
|
||||||
{
|
{
|
||||||
const char *p = strrchr(path, '/');
|
const char *p;
|
||||||
|
|
||||||
if (!path)
|
if (!path)
|
||||||
{
|
{
|
||||||
|
@ -58,6 +58,7 @@ path_split(const char *path, char **dir, char **file)
|
||||||
*file = NULL;
|
*file = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
p = strrchr(path, '/');
|
||||||
if (!p)
|
if (!p)
|
||||||
{
|
{
|
||||||
*dir = NULL;
|
*dir = NULL;
|
||||||
|
|
Loading…
Reference in New Issue