summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;