[gnome-builder] autotools: check for empty strings before parsing



commit ceb301e03b6690831a0fa672732c0a49a8763183
Author: Christian Hergert <chergert redhat com>
Date:   Mon May 9 09:28:46 2016 +0300

    autotools: check for empty strings before parsing

 plugins/autotools/ide-autotools-build-task.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/autotools/ide-autotools-build-task.c b/plugins/autotools/ide-autotools-build-task.c
index 710aad2..c20f056 100644
--- a/plugins/autotools/ide-autotools-build-task.c
+++ b/plugins/autotools/ide-autotools-build-task.c
@@ -367,7 +367,9 @@ gen_configure_argv (IdeAutotoolsBuildTask *self,
   system_type = ide_device_get_system_type (device);
   g_ptr_array_add (ar, g_strdup_printf ("--host=%s", system_type));
 
-  if (NULL != (opts = ide_configuration_get_config_opts (self->configuration)))
+  opts = ide_configuration_get_config_opts (self->configuration);
+
+  if (!ide_str_empty0 (opts))
     {
       GError *error = NULL;
       gint argc;


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