[anjuta] am-project: rh #702849 crash when removing a target in the project root node
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] am-project: rh #702849 crash when removing a target in the project root node
- Date: Thu, 16 Feb 2012 21:18:54 +0000 (UTC)
commit 5826f57ddef239df45787eb88e8c8f5770e89bda
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Thu Feb 16 22:16:33 2012 +0100
am-project: rh #702849 crash when removing a target in the project root node
plugins/am-project/amp-target.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/am-project/amp-target.c b/plugins/am-project/amp-target.c
index a33d0f4..cc362aa 100644
--- a/plugins/am-project/amp-target.c
+++ b/plugins/am-project/amp-target.c
@@ -442,7 +442,7 @@ amp_target_node_erase (AmpNode *target, AmpNode *parent, AmpProject *project, GE
if (node != ANJUTA_PROJECT_NODE (target))
{
prop = amp_node_get_property_from_token (node, AM_TOKEN__PROGRAMS, 6);
- if (g_strcmp0 (installdir, prop->value) == 0)
+ if ((prop != NULL) && (g_strcmp0 (installdir, prop->value) == 0))
{
used = TRUE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]