build: fix warning from release build

This commit is contained in:
Christian Hergert
2023-08-07 14:52:37 -07:00
parent a40f330096
commit 6fbf7250b1
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ sysprof_cli_record_cb (GObject *object,
g_assert (G_IS_ASYNC_RESULT (result));
g_assert (user_data == NULL);
if (!(recording = sysprof_profiler_record_finish (SYSPROF_PROFILER (object), result, &error)))
if (!(recording = sysprof_profiler_record_finish (profiler, result, &error)))
g_error ("Failed to start profiling session: %s", error->message);
diagnostics = sysprof_recording_list_diagnostics (recording);