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

Add some missing precondition checks

parent 80320983
No related branches found
No related tags found
1 merge request!59Add some missing preconditions
......@@ -54,6 +54,8 @@ _srt_architecture_can_run (const char *helpers_path,
const gchar *ld_preload;
gchar *filtered_preload = NULL;
g_return_val_if_fail (multiarch != NULL, FALSE);
if (helpers_path == NULL)
helpers_path = _srt_get_helpers_path ();
......
......@@ -158,6 +158,11 @@ _srt_runtime_check (const char *bin32,
GError *error = NULL;
GStrv my_environ = NULL;
g_return_val_if_fail (version_out == NULL || *version_out == NULL,
SRT_RUNTIME_ISSUES_INTERNAL_ERROR);
g_return_val_if_fail (path_out == NULL || *path_out == NULL,
SRT_RUNTIME_ISSUES_INTERNAL_ERROR);
if (custom_environ == NULL)
my_environ = g_get_environ ();
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment