gdm r6285 - in branches/gnome-2-22: . gui/simple-greeter
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r6285 - in branches/gnome-2-22: . gui/simple-greeter
- Date: Thu, 3 Jul 2008 20:00:20 +0000 (UTC)
Author: mccann
Date: Thu Jul 3 20:00:20 2008
New Revision: 6285
URL: http://svn.gnome.org/viewvc/gdm?rev=6285&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
up now.
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/gui/simple-greeter/gdm-user.c
Modified: branches/gnome-2-22/gui/simple-greeter/gdm-user.c
==============================================================================
--- branches/gnome-2-22/gui/simple-greeter/gdm-user.c (original)
+++ branches/gnome-2-22/gui/simple-greeter/gdm-user.c Thu Jul 3 20:00:20 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]