brasero r1326 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1326 - in trunk: . src
- Date: Mon, 29 Sep 2008 15:57:07 +0000 (UTC)
Author: philippr
Date: Mon Sep 29 15:57:07 2008
New Revision: 1326
URL: http://svn.gnome.org/viewvc/brasero?rev=1326&view=rev
Log:
Fix a potential crash
* src/brasero-file-node.c (brasero_file_node_nth_child),
(brasero_file_node_get_pos_as_child):
Modified:
trunk/ChangeLog
trunk/src/brasero-file-node.c
Modified: trunk/src/brasero-file-node.c
==============================================================================
--- trunk/src/brasero-file-node.c (original)
+++ trunk/src/brasero-file-node.c Mon Sep 29 15:57:07 2008
@@ -456,6 +456,9 @@
BraseroFileNode *peers;
guint pos;
+ if (!parent)
+ return NULL;
+
peers = BRASERO_FILE_NODE_CHILDREN (parent);
for (pos = 0; pos < nth && peers; pos ++)
peers = peers->next;
@@ -482,6 +485,9 @@
BraseroFileNode *peers;
guint pos = 0;
+ if (!node)
+ return 0;
+
parent = node->parent;
for (peers = BRASERO_FILE_NODE_CHILDREN (parent); peers; peers = peers->next) {
if (peers == node)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]