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

_srt_steam_check: Move precondition checks to the top

parent 74927afe
No related branches found
No related tags found
1 merge request!59Add some missing preconditions
Pipeline #1673 passed
......@@ -69,6 +69,11 @@ _srt_steam_check (const GStrv environ,
const char *user_data = NULL;
GStrv env = NULL;
g_return_val_if_fail (path_out == NULL || *path_out == NULL,
SRT_STEAM_ISSUES_INTERNAL_ERROR);
g_return_val_if_fail (bin32_out == NULL || *bin32_out == NULL,
SRT_STEAM_ISSUES_INTERNAL_ERROR);
env = (environ == NULL) ? g_get_environ () : g_strdupv (environ);
home = g_environ_getenv (env, "HOME");
......@@ -87,11 +92,6 @@ _srt_steam_check (const GStrv environ,
dot_steam_steam = g_build_filename (home, ".steam", "steam", NULL);
dot_steam_root = g_build_filename (home, ".steam", "root", NULL);
g_return_val_if_fail (path_out == NULL || *path_out == NULL,
SRT_STEAM_ISSUES_INTERNAL_ERROR);
g_return_val_if_fail (bin32_out == NULL || *bin32_out == NULL,
SRT_STEAM_ISSUES_INTERNAL_ERROR);
/* Canonically, ~/.steam/steam is a symlink to the Steam installation.
* (This is ignoring the Valve-internal "beta universe", which uses
* ~/.steam/steambeta instead.) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment