Skip to content
Snippets Groups Projects
Commit 016ad2ad authored by Benedikt Meurer's avatar Benedikt Meurer
Browse files

2006-02-14 Benedikt Meurer <benny@xfce.org>

	* thunar-vfs/thunar-vfs-volume-hal.c: Work-around HAL bug #5279, where
	  the UDIs array returned by libhal_drive_find_all_volumes() is not
	  properly NULL-terminated.




(Old svn revision: 19865)
parent b7a6df75
No related branches found
No related tags found
No related merge requests found
2006-02-14 Benedikt Meurer <benny@xfce.org>
* thunar-vfs/thunar-vfs-volume-hal.c: Work-around HAL bug #5279, where
the UDIs array returned by libhal_drive_find_all_volumes() is not
properly NULL-terminated.
2006-02-14 Benedikt Meurer <benny@xfce.org>
* thunar/thunar-shortcuts-model.c: Include non-removable volumes in
......
......@@ -29,6 +29,9 @@
#include <mntent.h>
#endif
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <dbus/dbus-glib-lowlevel.h>
......@@ -779,10 +782,16 @@ thunar_vfs_volume_manager_hal_init (ThunarVfsVolumeManagerHal *manager_hal)
{
/* add volumes for all given UDIs */
for (n = 0; n < n_udis; ++n)
thunar_vfs_volume_manager_hal_device_added (manager_hal->context, udis[n]);
{
/* add the volume based on the UDI */
thunar_vfs_volume_manager_hal_device_added (manager_hal->context, udis[n]);
/* release the UDI (HAL bug #5279) */
free (udis[n]);
}
/* release the UDIs */
libhal_free_string_array (udis);
/* release the UDIs array (HAL bug #5279) */
free (udis);
}
/* release the hal drive */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment