Skip to content

Commit

Permalink
Add comment for uninitialized variable. (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjceresa authored Apr 6, 2020
1 parent d1a67f2 commit 5f06718
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libinstpatch/IpatchConverter.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ ipatch_convert_object_to_type_multi(GObject *object, GType type, GError **err)
GList *
ipatch_convert_object_to_type_multi_list(GObject *object, GType type, GError **err)
{
/* Note: empty is intentionally not initialized. It allows to fix some build on ARM and PPC.
It is save to use, because empty is not accessed in ipatch_convert_object_to_type_multi_set_vlist
when the second last argument is NULL.
*/
va_list empty;
return (ipatch_convert_object_to_type_multi_set_vlist(object, type, err, NULL, empty));
}
Expand Down Expand Up @@ -295,6 +299,7 @@ ipatch_convert_object_to_type_multi_set_vlist(GObject *object, GType type, GErro
return NULL;
}

/* assign properties (if any) */
if(first_property_name)
{
g_object_set_valist((GObject *)conv, first_property_name, args);
Expand Down

0 comments on commit 5f06718

Please sign in to comment.