gdm r6284 - in trunk: . gui/simple-greeter



Author: mccann
Date: Thu Jul  3 20:00:07 2008
New Revision: 6284
URL: http://svn.gnome.org/viewvc/gdm?rev=6284&view=rev

Log:
2008-07-03  William Jon McCann  <jmccann redhat com>

	* gui/simple-greeter/gdm-user.c (render_icon_from_home):
	Check for null filesystem type.  Odd that this should show



Modified:
   trunk/ChangeLog
   trunk/gui/simple-greeter/gdm-user.c

Modified: trunk/gui/simple-greeter/gdm-user.c
==============================================================================
--- trunk/gui/simple-greeter/gdm-user.c	(original)
+++ trunk/gui/simple-greeter/gdm-user.c	Thu Jul  3 20:00:07 2008
@@ -750,11 +750,13 @@
                 }
                 filesystem_type = g_file_info_get_attribute_string (file_info,
                                                                     G_FILE_ATTRIBUTE_FILESYSTEM_TYPE);
-                is_local = ((strcmp (filesystem_type, "nfs") != 0) &&
-                            (strcmp (filesystem_type, "afs") != 0) &&
-                            (strcmp (filesystem_type, "autofs") != 0) &&
-                            (strcmp (filesystem_type, "unknown") != 0) &&
-                            (strcmp (filesystem_type, "ncpfs") != 0));
+                if (filesystem_type != NULL) {
+                        is_local = ((strcmp (filesystem_type, "nfs") != 0) &&
+                                    (strcmp (filesystem_type, "afs") != 0) &&
+                                    (strcmp (filesystem_type, "autofs") != 0) &&
+                                    (strcmp (filesystem_type, "unknown") != 0) &&
+                                    (strcmp (filesystem_type, "ncpfs") != 0));
+                }
                 g_object_unref (file_info);
                 g_object_unref (file);
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]