Skip to content

Commit 5f06718

Browse files
authored
Add comment for uninitialized variable. (#39)
1 parent d1a67f2 commit 5f06718

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: libinstpatch/IpatchConverter.c

+5
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ ipatch_convert_object_to_type_multi(GObject *object, GType type, GError **err)
216216
GList *
217217
ipatch_convert_object_to_type_multi_list(GObject *object, GType type, GError **err)
218218
{
219+
/* Note: empty is intentionally not initialized. It allows to fix some build on ARM and PPC.
220+
It is save to use, because empty is not accessed in ipatch_convert_object_to_type_multi_set_vlist
221+
when the second last argument is NULL.
222+
*/
219223
va_list empty;
220224
return (ipatch_convert_object_to_type_multi_set_vlist(object, type, err, NULL, empty));
221225
}
@@ -295,6 +299,7 @@ ipatch_convert_object_to_type_multi_set_vlist(GObject *object, GType type, GErro
295299
return NULL;
296300
}
297301

302+
/* assign properties (if any) */
298303
if(first_property_name)
299304
{
300305
g_object_set_valist((GObject *)conv, first_property_name, args);

0 commit comments

Comments
 (0)