Skip to content

Commit

Permalink
Return after warning with NULL callback
Browse files Browse the repository at this point in the history
  • Loading branch information
bluca committed Sep 30, 2024
1 parent 89ec897 commit 3f79f3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/polkitbackend/polkitbackendsessionmonitor-systemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ sd_source_dispatch (GSource *source,

g_warn_if_fail (callback != NULL);

if (callback == NULL)
return G_SOURCE_CONTINUE;

ret = (*callback) (user_data);

sd_login_monitor_flush (sd_source->monitor);
Expand Down

0 comments on commit 3f79f3e

Please sign in to comment.