[gvfs] dav: Check for empty but present displayname dav-property
- From: Christian Kellner <gicmo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] dav: Check for empty but present displayname dav-property
- Date: Wed, 18 May 2011 16:30:57 +0000 (UTC)
commit 1063605ca55209a1f2f2b5c19fd0913220451590
Author: Christian Kellner <gicmo gnome org>
Date: Wed May 18 18:23:55 2011 +0200
dav: Check for empty but present displayname dav-property
Some servers will send a displayname property which is empty leading to a
critical warning inside GIO. We therefore have to check if the displayname
is non-null before setting it.
daemon/gvfsbackenddav.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackenddav.c b/daemon/gvfsbackenddav.c
index 228e87e..a1fc442 100644
--- a/daemon/gvfsbackenddav.c
+++ b/daemon/gvfsbackenddav.c
@@ -997,7 +997,7 @@ ms_response_to_file_info (MsResponse *response,
file_type = parse_resourcetype (node);
g_file_info_set_file_type (info, file_type);
}
- else if (node_has_name (node, "displayname"))
+ else if (node_has_name (node, "displayname") && text)
{
g_file_info_set_display_name (info, text);
have_display_name = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]