1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-12 19:06:36 +00:00

Fix crash when no display output is enabled

This commit is contained in:
François Revol 2022-09-04 14:11:41 +02:00
parent 7cf80d5948
commit 80e063ef80

View File

@ -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() {