summaryrefslogtreecommitdiff
path: root/tests/asynchronous/generator.c-expected
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2022-01-03 13:59:36 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2022-01-03 13:59:36 +0100
commit9adade648eacc354cc6f4cf55f00e537a58d136f (patch)
treec4f919f7fda8250a3151b781707cf156260452b0 /tests/asynchronous/generator.c-expected
parent29470dbcfc149d241886dcecb7fd6f4207dc7917 (diff)
downloadvala-9adade648eacc354cc6f4cf55f00e537a58d136f.tar.gz
codegen: Initialize "result" variable on declaration for abstract methods only
Diffstat (limited to 'tests/asynchronous/generator.c-expected')
-rw-r--r--tests/asynchronous/generator.c-expected6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/asynchronous/generator.c-expected b/tests/asynchronous/generator.c-expected
index 6ec0dbc79..910916b6d 100644
--- a/tests/asynchronous/generator.c-expected
+++ b/tests/asynchronous/generator.c-expected
@@ -392,7 +392,7 @@ generator_feed_co (GeneratorFeedData* _data_)
gboolean
generator_next (Generator* self)
{
- gboolean result = FALSE;
+ gboolean result;
g_return_val_if_fail (IS_GENERATOR (self), FALSE);
result = !self->priv->consumed;
return result;
@@ -406,7 +406,7 @@ generator_get (Generator* self)
gpointer _tmp1_;
GSourceFunc _tmp2_;
gpointer _tmp2__target;
- gpointer result = NULL;
+ gpointer result;
g_return_val_if_fail (IS_GENERATOR (self), NULL);
_tmp0_ = self->priv->value;
_tmp1_ = ((_tmp0_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp0_) : ((gpointer) _tmp0_);
@@ -422,7 +422,7 @@ Generator*
generator_iterator (Generator* self)
{
Generator* _tmp0_;
- Generator* result = NULL;
+ Generator* result;
g_return_val_if_fail (IS_GENERATOR (self), NULL);
_tmp0_ = _generator_ref0 (self);
result = _tmp0_;