projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3211895
)
gio/tests: Add a dynamic type check assertion
author
Philip Withnall
<philip.withnall@collabora.co.uk>
Tue, 26 Nov 2013 11:21:37 +0000
(11:21 +0000)
committer
Philip Withnall
<philip.withnall@collabora.co.uk>
Wed, 27 Nov 2013 10:01:30 +0000
(10:01 +0000)
This shuts up a static analysis false positive, and adds some extra
checking.
Found by scan-build.
https://bugzilla.gnome.org/show_bug.cgi?id=113075
gio/tests/task.c
patch
|
blob
|
history
diff --git
a/gio/tests/task.c
b/gio/tests/task.c
index
7c97a82
..
1a1dd15
100644
(file)
--- a/
gio/tests/task.c
+++ b/
gio/tests/task.c
@@
-1665,7
+1665,7
@@
legacy_error_return (gpointer user_data)
}
else
{
- GSimpleAsyncResult *simple =
user_data
;
+ GSimpleAsyncResult *simple =
G_SIMPLE_ASYNC_RESULT (user_data)
;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
g_simple_async_result_set_error (simple,