brasero r1535 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1535 - in trunk: . src
- Date: Mon, 17 Nov 2008 12:54:03 +0000 (UTC)
Author: philippr
Date: Mon Nov 17 12:54:02 2008
New Revision: 1535
URL: http://svn.gnome.org/viewvc/brasero?rev=1535&view=rev
Log:
Try not to crash in the very unlikely event when HAL doesn\'t return a
block path
* src/burn-drive.c (brasero_drive_init_real):
Modified:
trunk/ChangeLog
trunk/src/burn-drive.c
Modified: trunk/src/burn-drive.c
==============================================================================
--- trunk/src/burn-drive.c (original)
+++ trunk/src/burn-drive.c Mon Nov 17 12:54:02 2008
@@ -551,7 +551,7 @@
priv->udi,
BLOCK_DEVICE,
NULL);
- if (priv->path [0] == '\0') {
+ if (priv->path && priv->path [0] == '\0') {
g_free (priv->path);
priv->path = NULL;
}
@@ -560,7 +560,7 @@
priv->udi,
"block.device",
NULL);
- if (priv->block_path [0] == '\0') {
+ if (priv->block_path && priv->block_path [0] == '\0') {
g_free (priv->block_path);
priv->block_path = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]