diff options
| author | Leandro Pereira <leandro@hardinfo.org> | 2020-05-15 21:29:29 -0700 | 
|---|---|---|
| committer | Leandro Pereira <leandro@hardinfo.org> | 2020-05-15 21:29:29 -0700 | 
| commit | 9113356173ed569ce22573dc6d1e05c922bf2340 (patch) | |
| tree | efcc232a9371b3c18957bce6bb51c14bb3a5a0cb /modules | |
| parent | f4160cb34a636ceda799ca9a00a611960536802d (diff) | |
Fix crash when selecting Devices->Monitors
Spotted while running on Debian 8/PowerPC.
Closes #549.  Fix by @bp0.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/devices/monitors.c | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/modules/devices/monitors.c b/modules/devices/monitors.c index 7c64c10a..652d77fd 100644 --- a/modules/devices/monitors.c +++ b/modules/devices/monitors.c @@ -474,10 +474,8 @@ gchar *monitors_get_info() {                                  edid_section ? edid_section : ""                                  );              moreinfo_add_with_prefix(tag_prefix, tag, details); /* moreinfo now owns *details */ -            ret = h_strdup_cprintf("$!%s$%s=%s|%s\n", -                                    ret, -                                    tag, m->drm_connection, desc -                                    ); +            ret = h_strdup_cprintf("$!%s$%s=%s\n", +                                    ret, tag, m->drm_connection, desc);              icons = h_strdup_cprintf("Icon$%s$=%s\n", icons, tag, monitor_icon);              g_free(desc);              g_free(edid_section); | 
