[frogr] Added missing null check when adding pictures to groups
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Added missing null check when adding pictures to groups
- Date: Sun, 11 Nov 2012 00:11:04 +0000 (UTC)
commit ba1cdcf3769e2c9f31a4ab660b21ec93bd6e2787
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Sun Nov 11 00:54:28 2012 +0100
Added missing null check when adding pictures to groups
src/frogr-controller.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index a6f8378..64e71b5 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -1243,7 +1243,7 @@ _add_to_group_cb (GObject *object, GAsyncResult *res, gpointer data)
group = FROGR_GROUP (groups->data);
fsp_session_add_to_group_finish (session, res, &error);
- if (_should_retry_operation (error, uop_data->after_upload_attempts[AFTER_UPLOAD_OP_ADDING_TO_GROUP]))
+ if (error && _should_retry_operation (error, uop_data->after_upload_attempts[AFTER_UPLOAD_OP_ADDING_TO_GROUP]))
{
uop_data->after_upload_attempts[AFTER_UPLOAD_OP_ADDING_TO_GROUP]++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]