[nautilus] places-sidebar: guard for NULL supported VFS schemes array
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] places-sidebar: guard for NULL supported VFS schemes array
- Date: Wed, 1 Aug 2012 11:25:49 +0000 (UTC)
commit c686068f5129e8648f1259bb115fcfa61bac974d
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Aug 1 13:23:47 2012 +0200
places-sidebar: guard for NULL supported VFS schemes array
GVfs might not be installed, or not support any protocol.
src/nautilus-places-sidebar.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 1298137..9fea7a9 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -432,6 +432,10 @@ recent_is_supported (void)
int i;
supported = g_vfs_get_supported_uri_schemes (g_vfs_get_default ());
+ if (!supported) {
+ return FALSE;
+ }
+
for (i = 0; supported[i] != NULL; i++) {
if (strcmp ("recent", supported[i]) == 0) {
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]