summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnautilus-private/nautilus-file.c')
-rw-r--r--libnautilus-private/nautilus-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index bd01fb832..44f2047c0 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -231,7 +231,7 @@ nautilus_file_set_display_name (NautilusFile *file,
{
gboolean changed;
- if (display_name == NULL) {
+ if (display_name == NULL || *display_name == 0) {
return FALSE;
}