[anjuta] build-basic-autotools: Fix rh#757236 - anjuta crashes when file doesn't belong to build configuratio
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] build-basic-autotools: Fix rh#757236 - anjuta crashes when file doesn't belong to build configuratio
- Date: Mon, 28 Nov 2011 20:37:05 +0000 (UTC)
commit 5660d6446dbcf1629434957df1acd31ba95defde
Author: Johannes Schmid <jhs gnome org>
Date: Mon Nov 28 21:34:59 2011 +0100
build-basic-autotools: Fix rh#757236 - anjuta crashes when file doesn't belong to build configuration.
plugins/build-basic-autotools/build.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/build-basic-autotools/build.c b/plugins/build-basic-autotools/build.c
index 0b298f0..03004bb 100644
--- a/plugins/build-basic-autotools/build.c
+++ b/plugins/build-basic-autotools/build.c
@@ -597,6 +597,12 @@ build_is_file_built (BasicAutotoolsPlugin *plugin, GFile *file,
config = build_configuration_list_get_selected (plugin->configurations);
+
+ if (!config)
+ {
+ return NULL;
+ }
+
vars = build_configuration_get_variables (config);
build_dir = build_file_from_file (plugin, file, &target);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]