[anjuta] build: bgo #625604 - anjuta crashes on starting the debugger
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] build: bgo #625604 - anjuta crashes on starting the debugger
- Date: Sat, 31 Jul 2010 14:09:24 +0000 (UTC)
commit d773570df20a6d698ffd39bd7dd4221d9d9d7f13
Author: Sergei Grudinin <sergei grudinin inria fr>
Date: Sat Jul 31 16:09:13 2010 +0200
build: bgo #625604 - anjuta crashes on starting the debugger
plugins/build-basic-autotools/plugin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/build-basic-autotools/plugin.c b/plugins/build-basic-autotools/plugin.c
index a4081f3..acbd996 100644
--- a/plugins/build-basic-autotools/plugin.c
+++ b/plugins/build-basic-autotools/plugin.c
@@ -2140,7 +2140,7 @@ build_get_uri_configuration (BasicAutotoolsPlugin *plugin, const gchar *uri)
for (cfg = build_configuration_list_get_first (plugin->configurations); cfg != NULL; cfg = build_configuration_next (cfg))
{
const gchar *root = build_configuration_list_get_build_uri (plugin->configurations, cfg);
- gsize len = strlen (root);
+ gsize len = root != NULL ? strlen (root) : 0;
if ((len > uri_len) && (strncmp (uri, root, len) == 0))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]