ges-project: Check for set/unset error correctly by dereferencing
authorSebastian Dröge <sebastian@centricular.com>
Tue, 28 Feb 2017 10:59:35 +0000 (12:59 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 28 Feb 2017 10:59:35 +0000 (12:59 +0200)
... or simply calling g_clear_error() on it which does that for us.

CID 1257630

ges/ges-project.c

index 1dc5fdadc95487339ae544cf8d1837acd94a0515..3c336edd6cbda8d7dd43ed8478166dc28282ab46 100644 (file)
@@ -789,8 +789,7 @@ ges_project_create_asset_sync (GESProject * project, const gchar * id,
       if (possible_id == NULL)
         return NULL;
 
-      if (error)
-        g_clear_error (error);
+      g_clear_error (error);
 
       id = possible_id;
     }