[gnome-builder] flatpak: Check for NULL pointers explicitly



commit 6df4053bc770ce4652e62d5d5df166ee626690ba
Author: Matthew Leeds <mleeds redhat com>
Date:   Mon Nov 28 19:12:11 2016 -0600

    flatpak: Check for NULL pointers explicitly

 plugins/flatpak/gbp-flatpak-runtime.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-runtime.c b/plugins/flatpak/gbp-flatpak-runtime.c
index 77dfa1a..4a1bd01 100644
--- a/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/plugins/flatpak/gbp-flatpak-runtime.c
@@ -173,7 +173,7 @@ gbp_flatpak_runtime_prebuild_worker (GTask        *task,
   ide_subprocess_launcher_push_argv (launcher, flatpak_repo_path);
   process = ide_subprocess_launcher_spawn (launcher, cancellable, &error);
 
-  if (!process)
+  if (process == NULL)
     {
       g_task_return_error (task, g_steal_pointer (&error));
       return;
@@ -248,7 +248,7 @@ gbp_flatpak_runtime_prebuild_worker (GTask        *task,
           ide_subprocess_launcher_push_argv (launcher3, manifest_path);
           process3 = ide_subprocess_launcher_spawn (launcher3, cancellable, &error);
 
-          if (!process3)
+          if (process3 == NULL)
             {
               g_task_return_error (task, g_steal_pointer (&error));
               return;
@@ -287,7 +287,7 @@ gbp_flatpak_runtime_prebuild_worker (GTask        *task,
   ide_subprocess_launcher_push_argv (launcher2, self->branch);
   process2 = ide_subprocess_launcher_spawn (launcher2, cancellable, &error);
 
-  if (!process2)
+  if (process2 == NULL)
     {
       g_task_return_error (task, g_steal_pointer (&error));
       return;
@@ -442,7 +442,7 @@ gbp_flatpak_runtime_postinstall_worker (GTask        *task,
 
       process = ide_subprocess_launcher_spawn (launcher, cancellable, &error);
 
-      if (!process)
+      if (process == NULL)
         {
           g_task_return_error (task, g_steal_pointer (&error));
           return;
@@ -469,7 +469,7 @@ gbp_flatpak_runtime_postinstall_worker (GTask        *task,
   ide_subprocess_launcher_push_argv (launcher2, build_path);
   process2 = ide_subprocess_launcher_spawn (launcher2, cancellable, &error);
 
-  if (!process2)
+  if (process2 == NULL)
     {
       g_task_return_error (task, g_steal_pointer (&error));
       return;
@@ -500,7 +500,7 @@ gbp_flatpak_runtime_postinstall_worker (GTask        *task,
   ide_subprocess_launcher_push_argv (launcher3, app_id);
   process3 = ide_subprocess_launcher_spawn (launcher3, cancellable, &error);
 
-  if (!process3)
+  if (process3 == NULL)
     {
       g_task_return_error (task, g_steal_pointer (&error));
       return;
@@ -523,7 +523,7 @@ gbp_flatpak_runtime_postinstall_worker (GTask        *task,
 
   process4 = ide_subprocess_launcher_spawn (launcher4, cancellable, &error);
 
-  if (!process4)
+  if (process4 == NULL)
     {
       g_task_return_error (task, g_steal_pointer (&error));
       return;


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