[easytag/wip/clang-analyzer: 7/7] Avoid bogus comparison due to operator precedence
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/clang-analyzer: 7/7] Avoid bogus comparison due to operator precedence
- Date: Sat, 10 Aug 2013 22:37:07 +0000 (UTC)
commit 22e4293187fe51e391061a72fab81cfbacc11a18
Author: David King <amigadave amigadave com>
Date: Sat Aug 10 23:00:21 2013 +0100
Avoid bogus comparison due to operator precedence
Found with the Clang static analyzer.
src/misc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index 3893452..d55c397 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -3326,7 +3326,7 @@ Load_Filename_Set_Filenames (void)
gtk_tree_model_get(GTK_TREE_MODEL(LoadFileContentListModel), &iter_content,
LOAD_FILE_CONTENT_TEXT, &list_text, -1);
- if (ETFile && list_text && g_utf8_strlen(list_text, -1)>0)
+ if (ETFile && list_text && (g_utf8_strlen (list_text, -1) > 0))
{
gchar *list_text_tmp;
gchar *filename_new_utf8;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]