[tracker/cuesheets] libtracker-common: Remove unnecessary condition in tracker_filename_casecmp_without_extension()
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/cuesheets] libtracker-common: Remove unnecessary condition in tracker_filename_casecmp_without_extension()
- Date: Thu, 29 Sep 2011 16:44:08 +0000 (UTC)
commit 66505b3a0f7ad6bcbf6d476740d15feece16d849
Author: Martyn Russell <martyn lanedo com>
Date: Thu Sep 29 16:13:13 2011 +0100
libtracker-common: Remove unnecessary condition in tracker_filename_casecmp_without_extension()
src/libtracker-common/tracker-file-utils.c | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/src/libtracker-common/tracker-file-utils.c b/src/libtracker-common/tracker-file-utils.c
index 64dc272..0682943 100644
--- a/src/libtracker-common/tracker-file-utils.c
+++ b/src/libtracker-common/tracker-file-utils.c
@@ -869,11 +869,9 @@ tracker_filename_casecmp_without_extension (const gchar *a,
if (*ca == '\0' && *cb == '\0')
break;
- if (*ca != '\0' && *cb != '\0') {
- if (g_ascii_tolower (*ca) != g_ascii_tolower (*cb)) {
- match = FALSE;
- break;
- }
+ if (g_ascii_tolower (*ca) != g_ascii_tolower (*cb)) {
+ match = FALSE;
+ break;
}
if (*ca == '.')
@@ -895,17 +893,21 @@ tracker_filename_casecmp_without_extension (const gchar *a,
if (*ca != '\0' && period_a) {
match = TRUE;
- while (*(ca ++) != '\0')
- if (*ca == '.')
+ while (*(ca ++) != '\0') {
+ if (*ca == '.') {
match = FALSE;
+ }
+ }
}
if (*cb != '\0' && period_b) {
match = TRUE;
- while (*(cb ++) != '\0')
- if (*cb == '.')
+ while (*(cb ++) != '\0') {
+ if (*cb == '.') {
match = FALSE;
+ }
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]