[totem] main: Add sanity check to totem_playlist_clear_with_g_mount()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Add sanity check to totem_playlist_clear_with_g_mount()
- Date: Mon, 2 Jul 2012 19:25:06 +0000 (UTC)
commit c66215e23c8f0f876193eb7e5b31cc192ff874b6
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 2 20:19:14 2012 +0100
main: Add sanity check to totem_playlist_clear_with_g_mount()
src/totem-playlist.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-playlist.c b/src/totem-playlist.c
index 6bdc3e8..287747f 100644
--- a/src/totem-playlist.c
+++ b/src/totem-playlist.c
@@ -2430,6 +2430,8 @@ void
totem_playlist_clear_with_g_mount (TotemPlaylist *playlist,
GMount *mount)
{
+ g_return_if_fail (mount != NULL);
+
totem_playlist_clear_with_compare (playlist,
(ClearComparisonFunc) totem_playlist_compare_with_mount,
mount);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]