[evolution-ews/gnome-2-28] Bug #672448 compiler warnings when flag is set to O2
- From: Punit Jain <jpunit src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/gnome-2-28] Bug #672448 compiler warnings when flag is set to O2
- Date: Tue, 27 Mar 2012 07:02:11 +0000 (UTC)
commit b901165a3b96d2245168f11a7cb1ea5d2171b25d
Author: Punit Jain <jpunit suse com>
Date: Mon Mar 26 17:35:17 2012 +0530
Bug #672448 compiler warnings when flag is set to O2
src/utils/e-ews-query-to-restriction.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/utils/e-ews-query-to-restriction.c b/src/utils/e-ews-query-to-restriction.c
index 4bb18cb..a97e661 100644
--- a/src/utils/e-ews-query-to-restriction.c
+++ b/src/utils/e-ews-query-to-restriction.c
@@ -786,7 +786,7 @@ func_eq (ESExp *f,
}
if (argv[0]->type == ESEXP_RES_STRING) {
- gchar *name, *field_uri;
+ gchar *name, *field_uri = NULL;
name = argv[0]->value.string;
if (!g_strcmp0 (name, "sent-date")) {
@@ -795,7 +795,7 @@ func_eq (ESExp *f,
field_uri = g_strdup ("item:DateTimeReceived");
}
- if (argv[1]->type == ESEXP_RES_INT && argv[1]->value.number != 0) {
+ if (field_uri && argv[1]->type == ESEXP_RES_INT && argv[1]->value.number != 0) {
time_t time;
gchar *date;
time = argv[1]->value.number;
@@ -822,13 +822,13 @@ func_gt (ESExp *f,
msg = (ESoapMessage *) data;
if (argc != 2) {
- e_sexp_fatal_error (f, "two arguments are required for this operation");
+ e_sexp_fatal_error (f, "two arguments are required for this operation");
return NULL;
}
if (argv[0]->type == ESEXP_RES_STRING) {
- gchar *name, *field_uri;
- gboolean is_time;
+ gchar *name, *field_uri = NULL;
+ gboolean is_time = FALSE;
name = argv[0]->value.string;
if (!g_strcmp0 (name, "sent-date")) {
@@ -842,7 +842,7 @@ func_gt (ESExp *f,
is_time = FALSE;
}
- if (argv[1]->type == ESEXP_RES_INT && argv[1]->value.number != 0) {
+ if (field_uri && argv[1]->type == ESEXP_RES_INT && argv[1]->value.number != 0) {
if (is_time) {
time_t time;
gchar *date;
@@ -885,8 +885,8 @@ func_lt (ESExp *f,
}
if (argv[0]->type == ESEXP_RES_STRING) {
- gchar *name, *field_uri;
- gboolean is_time;
+ gchar *name, *field_uri = NULL;
+ gboolean is_time = FALSE;
name = argv[0]->value.string;
if (!g_strcmp0 (name, "sent-date")) {
@@ -900,7 +900,7 @@ func_lt (ESExp *f,
is_time = FALSE;
}
- if (argv[1]->type == ESEXP_RES_INT && argv[1]->value.number != 0) {
+ if (field_uri && argv[1]->type == ESEXP_RES_INT && argv[1]->value.number != 0) {
if (is_time) {
time_t time;
gchar *date;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]