aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index b669e1c..39e29d0 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -132,7 +132,7 @@ char *path_basename(char *path) {
char *last = NULL;
if ((last = strrchr(path, '/')) == NULL) {
- return result;
+ return path;
}
// Perform a lookahead ensuring the string is valid beyond the last separator
if (last++ != NULL) {