[anjuta] Avoid an endless loop when updating a project
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] Avoid an endless loop when updating a project
- Date: Sun, 20 Aug 2017 12:12:49 +0000 (UTC)
commit a44ac464f65cfcf1cc0d4607dd56759c74968a41
Author: Sébastien Granjoux <seb sfo free fr>
Date: Sun Aug 20 13:46:34 2017 +0200
Avoid an endless loop when updating a project
plugins/am-project/am-project.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/am-project/am-project.c b/plugins/am-project/am-project.c
index 47abaf7..582aae8 100644
--- a/plugins/am-project/am-project.c
+++ b/plugins/am-project/am-project.c
@@ -277,6 +277,12 @@ get_relative_path (GFile *parent, GFile *file)
{
gchar *relative;
+ if (file == NULL)
+ {
+ g_warning("get_relative_path for a NULL file");
+ return NULL;
+ }
+
relative = g_file_get_relative_path (parent, file);
if (relative == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]