summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-05-18 13:43:30 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-18 13:43:30 -0400
commitd2bc216886b9d9524ecf5bfa68c6c01b3df24548 (patch)
treee345d1177bc117e1fa4a7bd6b68f1577b3a9809b /src/bin
parent12fa5f534972b8fe4b3548af7a1e0ff9b7f46bbf (diff)
eina-bt: Fix Coverity CID1297405 (dereference before null check)
@fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eina/eina_btlog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/eina/eina_btlog.c b/src/bin/eina/eina_btlog.c
index 3dbd40cbc6..67b63e6b3e 100644
--- a/src/bin/eina/eina_btlog.c
+++ b/src/bin/eina/eina_btlog.c
@@ -50,7 +50,7 @@ struct _Bt
50static void 50static void
51path_split(const char *path, char **dir, char **file) 51path_split(const char *path, char **dir, char **file)
52{ 52{
53 const char *p = strrchr(path, '/'); 53 const char *p;
54 54
55 if (!path) 55 if (!path)
56 { 56 {
@@ -58,6 +58,7 @@ path_split(const char *path, char **dir, char **file)
58 *file = NULL; 58 *file = NULL;
59 return; 59 return;
60 } 60 }
61 p = strrchr(path, '/');
61 if (!p) 62 if (!p)
62 { 63 {
63 *dir = NULL; 64 *dir = NULL;