Skip to content

Fix criticals

Matthias Clasen requested to merge fix-criticals into main

I see this in my logs:

  gnome-session-binary[1224]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
  gnome-session-binary[1224]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed

After staring at gnome-session code for a while, I've concluded that this happens because we sometimes fail to clear the error variable that gets reused all over main(). So, clear it always.

Edited by Matthias Clasen

Merge request reports