[epiphany/overview: 26/30] ephy-overview-store: safety check
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview: 26/30] ephy-overview-store: safety check
- Date: Wed, 13 Jun 2012 08:23:12 +0000 (UTC)
commit 73516bdb6af998f5a90afbc097dd79f0fb5e5195
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri May 11 17:11:20 2012 +0300
ephy-overview-store: safety check
Make sure the async history service call returns something before
using its data.
lib/widgets/ephy-overview-store.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/widgets/ephy-overview-store.c b/lib/widgets/ephy-overview-store.c
index 65ad1a6..8aded42 100644
--- a/lib/widgets/ephy-overview-store.c
+++ b/lib/widgets/ephy-overview-store.c
@@ -178,6 +178,9 @@ history_service_url_cb (gpointer service,
EphySnapshotService *snapshot_service;
int timestamp;
+ if (success == FALSE)
+ return;
+
snapshot_service = ephy_snapshot_service_get_default ();
/* This is a bit of an abuse of the semantics of the mtime
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]