libpurple/options.c: NULL terminate GOptionEntry array

Fri, 27 Apr 2018 17:09:05 -0500

author
Mike Ruprecht <cmaiku@gmail.com>
date
Fri, 27 Apr 2018 17:09:05 -0500
changeset 38973
b4ebaec25764
parent 38938
95bc3daeeea9
child 38974
8e28ea692d15

libpurple/options.c: NULL terminate GOptionEntry array

When passing a GOptionEntry array to g_option_group_add_entries(),
it must be NULL terminated. One wonders why it wasn't crashing in
Linux, but was in Windows. This patch adds the NULL termination.

libpurple/options.c file | annotate | diff | comparison | revisions
--- a/libpurple/options.c	Thu Apr 26 02:53:55 2018 +0000
+++ b/libpurple/options.c	Fri Apr 27 17:09:05 2018 -0500
@@ -79,6 +79,8 @@
 			G_OPTION_ARG_NONE, &force_online_cb,
 			_("force online, regardless of network status"),
 			NULL
+		}, {
+			NULL
 		},
 	};
 

mercurial