From 37b5b1275f2d7f4030668bcb1fde25cfa6ad85b3 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Wed, 2 May 2007 14:54:50 +0000 Subject: [PATCH] 2007-05-02 Murray Cumming * src/modest-text-utils.c: (modest_text_utils_validate_recipient): Comment out an if() that checks a gchar for < 0, causing a build-breaking warning. It is probably a logic error, but I need to fix the build. pmo-trunk-r1732 --- ChangeLog2 | 6 ++++++ src/modest-text-utils.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog2 b/ChangeLog2 index 7df983f..1cc8fe3 100644 --- a/ChangeLog2 +++ b/ChangeLog2 @@ -1,5 +1,11 @@ 2007-05-02 Murray Cumming + * src/modest-text-utils.c: (modest_text_utils_validate_recipient): + Comment out an if() that checks a gchar for < 0, causing a build-breaking + warning. It is probably a logic error, but I need to fix the build. + +2007-05-02 Murray Cumming + * src/modest-account-mgr.h: * src/modest-account-mgr.c: (modest_account_mgr_account_names): Add a gboolean enabled_only diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index 2c09387..4e6846b 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -1057,10 +1057,14 @@ modest_text_utils_validate_recipient (const gchar *recipient) has_error = TRUE; for (; *current != '\0'; current = g_utf8_next_char (current)) { if (*current == '\\') { + /* TODO: This causes a warning, which breaks the build, + * because a gchar cannot be < 0. + * murrayc. if (current[1] <0) { has_error = TRUE; break; } + */ } else if (*current == '\"') { has_error = FALSE; current = g_utf8_next_char (current); -- 1.7.9.5