[evolution-mapi] Fix minor compiler warning caused by conditional compilation
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Fix minor compiler warning caused by conditional compilation
- Date: Thu, 8 Dec 2011 13:33:10 +0000 (UTC)
commit 58bf9e28786e5833b8353ae5295d6fa1fbe87d3f
Author: Milan Crha <mcrha redhat com>
Date: Thu Dec 8 14:32:08 2011 +0100
Fix minor compiler warning caused by conditional compilation
src/addressbook/e-book-backend-mapi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-mapi.c b/src/addressbook/e-book-backend-mapi.c
index c344310..a63fbe8 100644
--- a/src/addressbook/e-book-backend-mapi.c
+++ b/src/addressbook/e-book-backend-mapi.c
@@ -2123,7 +2123,6 @@ term_eval_not (struct _ESExp *f,
struct _ESExpResult **argv,
gpointer user_data)
{
- struct EMapiSExpParserData *esp = user_data;
ESExpResult *r;
r = e_sexp_result_new (f, ESEXP_RES_INT);
@@ -2131,9 +2130,10 @@ term_eval_not (struct _ESExp *f,
#ifdef HAVE_RES_NOT_SUPPORTED
if (argc == 1 && argv[0]->type == ESEXP_RES_INT) {
+ struct EMapiSExpParserData *esp = user_data;
gint idx = argv[0]->value.number;
- if (idx >= 0 && idx < esp->res_parts->len) {
+ if (esp && idx >= 0 && idx < esp->res_parts->len) {
struct mapi_SRestriction *res = talloc_zero (esp->mem_ctx, struct mapi_SRestriction);
g_return_val_if_fail (res != NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]