[gnome-builder] autotools: don't parse empty variables



commit e44e6da08d1ed60f4947e2c5df8c1aef2b77ba78
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Sun Feb 19 07:20:47 2017 +0530

    autotools: don't parse empty variables
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771145

 plugins/autotools/ide-makecache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/autotools/ide-makecache.c b/plugins/autotools/ide-makecache.c
index 6a9a4b3..3dbae54 100644
--- a/plugins/autotools/ide-makecache.c
+++ b/plugins/autotools/ide-makecache.c
@@ -1643,7 +1643,7 @@ ide_makecache_get_build_targets_worker (GTask        *task,
 
           parts = g_strsplit (line, "=", 2);
 
-          if (!parts[0] || !parts[1])
+          if (!parts[0] || !parts[1] || !*parts[1])
             continue;
 
           g_strstrip (parts [0]);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]