aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/mingw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index a58cb7b01..bedf14784 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -1090,8 +1090,7 @@ int has_exe_suffix(const char *name)
1090 1090
1091int has_exe_suffix_or_dot(const char *name) 1091int has_exe_suffix_or_dot(const char *name)
1092{ 1092{
1093 int len = strlen(name); 1093 return last_char_is(name, '.') || has_win_suffix(name, 0);
1094 return (len > 0 && name[len-1] == '.') || has_win_suffix(name, 0);
1095} 1094}
1096 1095
1097/* check if path can be made into an executable by adding a suffix; 1096/* check if path can be made into an executable by adding a suffix;