# HG changeset patch # User Mike Ruprecht # Date 1524866945 18000 # Node ID b4ebaec25764df25b0d76503dd291b11445badb3 # Parent 95bc3daeeea99109890d47149ac615423817b9f2 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. diff -r 95bc3daeeea9 -r b4ebaec25764 libpurple/options.c --- 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 }, };