projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da399fb
)
ges-project: Check for set/unset error correctly by dereferencing
author
Sebastian Dröge
<sebastian@centricular.com>
Tue, 28 Feb 2017 10:59:35 +0000
(12:59 +0200)
committer
Sebastian 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
patch
|
blob
|
history
diff --git
a/ges/ges-project.c
b/ges/ges-project.c
index 1dc5fdadc95487339ae544cf8d1837acd94a0515..3c336edd6cbda8d7dd43ed8478166dc28282ab46 100644
(file)
--- a/
ges/ges-project.c
+++ b/
ges/ges-project.c
@@
-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;
}