[evolution-ews] 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] Bug #672448 compiler warnings when flag is set to O2
- Date: Mon, 26 Mar 2012 12:05:50 +0000 (UTC)
commit e00628240cf6ea8f6c96abf634f29208fa8fd1ef
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 f932198..2d26241 100644
--- a/src/utils/e-ews-query-to-restriction.c
+++ b/src/utils/e-ews-query-to-restriction.c
@@ -769,7 +769,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")) {
@@ -778,7 +778,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;
@@ -805,13 +805,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")) {
@@ -825,7 +825,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;
@@ -868,8 +868,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")) {
@@ -883,7 +883,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]