Skip to content
Snippets Groups Projects
Commit af26fde6 authored by Simon McVittie's avatar Simon McVittie
Browse files

utils: Always call _srt_check_not_setuid from constructor


Previously, we only called this if we were already going to call
g_type_init().

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent c6b8b14f
Branches
Tags
1 merge request!93Unblock SIGCHLD when spawning subprocesses
......@@ -443,12 +443,12 @@ srt_enum_value_to_nick (GType enum_type,
return result;
}
#if !GLIB_CHECK_VERSION(2, 36, 0)
static void _srt_constructor (void) __attribute__((__constructor__));
static void
_srt_constructor (void)
{
#if !GLIB_CHECK_VERSION(2, 36, 0)
g_type_init ();
#endif
g_return_if_fail (_srt_check_not_setuid ());
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment