glib r7463 - branches/glib-2-16/gio



Author: matthiasc
Date: Thu Sep 11 19:00:18 2008
New Revision: 7463
URL: http://svn.gnome.org/viewvc/glib?rev=7463&view=rev

Log:
        Bug 545457 â gdmsetup crashed with SIGSEGV in
        g_unix_mount_guess_should_display()

        * gunixvolumemonitor.c (get_mount_for_mount_path): Don't
        crash if no mount is found.



Modified:
   branches/glib-2-16/gio/ChangeLog
   branches/glib-2-16/gio/gunixvolumemonitor.c

Modified: branches/glib-2-16/gio/gunixvolumemonitor.c
==============================================================================
--- branches/glib-2-16/gio/gunixvolumemonitor.c	(original)
+++ branches/glib-2-16/gio/gunixvolumemonitor.c	Thu Sep 11 19:00:18 2008
@@ -149,7 +149,10 @@
   GUnixMount *mount;
 
   mount_entry = g_unix_mount_at (mount_path, NULL);
-  
+
+  if (!mount_entry)
+    return NULL;
+
   /* TODO: Set mountable volume? */
   mount = _g_unix_mount_new (NULL, mount_entry, NULL);
 



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