Skip to content

Commit

Permalink
Fix crash when no display output is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuman committed Sep 10, 2022
1 parent 7cf80d5 commit 80e063e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/display-output.hh
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ static inline conky::display_output_base *display_output() {
if (conky::current_display_outputs.size())
return conky::current_display_outputs[0];
// XXX; not really what intended yet...
return conky::active_display_outputs[0];
// return nullptr;
if (conky::active_display_outputs.size())
return conky::active_display_outputs[0];
return nullptr;
}

static inline void unset_display_output() {
Expand Down

0 comments on commit 80e063e

Please sign in to comment.