brasero r1802 - in trunk: . libbrasero-media
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1802 - in trunk: . libbrasero-media
- Date: Wed, 21 Jan 2009 14:16:50 +0000 (UTC)
Author: philippr
Date: Wed Jan 21 14:16:50 2009
New Revision: 1802
URL: http://svn.gnome.org/viewvc/brasero?rev=1802&view=rev
Log:
2009-01-21 Philippe Rouquier <ykw localhost localdomain>
Add g_return*_if_fail to protect code
* libbrasero-media/brasero-medium.c
(brasero_medium_get_last_data_track_address):
Modified:
trunk/ChangeLog
trunk/libbrasero-media/brasero-medium.c
Modified: trunk/libbrasero-media/brasero-medium.c
==============================================================================
--- trunk/libbrasero-media/brasero-medium.c (original)
+++ trunk/libbrasero-media/brasero-medium.c Wed Jan 21 14:16:50 2009
@@ -377,6 +377,9 @@
BraseroMediumPrivate *priv;
BraseroMediumTrack *track = NULL;
+ g_return_val_if_fail (medium != NULL, FALSE);
+ g_return_val_if_fail (BRASERO_IS_MEDIUM (medium), FALSE);
+
priv = BRASERO_MEDIUM_PRIVATE (medium);
for (iter = priv->tracks; iter; iter = iter->next) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]