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
|
||||
path_split(const char *path, char **dir, char **file)
|
||||
{
|
||||
const char *p = strrchr(path, '/');
|
||||
const char *p;
|
||||
|
||||
if (!path)
|
||||
{
|
||||
|
@ -58,6 +58,7 @@ path_split(const char *path, char **dir, char **file)
|
|||
*file = NULL;
|
||||
return;
|
||||
}
|
||||
p = strrchr(path, '/');
|
||||
if (!p)
|
||||
{
|
||||
*dir = NULL;
|
||||
|
|
Loading…
Reference in New Issue