Commit f2ffcf7b authored by Jürg Billeter's avatar Jürg Billeter

libtracker-common: Fix tracker_filename_casecmp_without_extension

This fixes the test case comparing "test.mp3" and "test".
parent e85b3478
......@@ -869,9 +869,11 @@ tracker_filename_casecmp_without_extension (const gchar *a,
if (*ca == '\0' && *cb == '\0')
break;
if (g_ascii_tolower (*ca) != g_ascii_tolower (*cb)) {
match = FALSE;
break;
if (*ca != '\0' && *cb != '\0') {
if (g_ascii_tolower (*ca) != g_ascii_tolower (*cb)) {
match = FALSE;
break;
}
}
if (*ca == '.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment