[geany/geany] 3219d9: Make sure that file extension is taken from file (not preceding directory)

Jiří Techet git-noreply at xxxxx
Mon Dec 17 21:05:32 UTC 2018


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Sat, 08 Oct 2016 12:12:45 UTC
Commit:      3219d9783c770d4ee6dd598bf1f932c3fe53e694
             https://github.com/geany/geany/commit/3219d9783c770d4ee6dd598bf1f932c3fe53e694

Log Message:
-----------
Make sure that file extension is taken from file (not preceding directory)


Modified Paths:
--------------
    ctags/main/routines.c

Modified: ctags/main/routines.c
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -455,8 +455,9 @@ extern const char *fileExtension (const char *const fileName)
 {
 	const char *extension;
 	const char *pDelimiter = NULL;
+	const char *const base = baseFilename (fileName);
 
-	pDelimiter = strrchr (fileName, '.');
+	pDelimiter = strrchr (base, '.');
 
 	if (pDelimiter == NULL)
 		extension = "";



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list