Fix NULL dereference in glx_update_fbconfig

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-01-31 22:46:12 +00:00
parent 543bbe6a39
commit b76a4234e5
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 4 additions and 4 deletions

View File

@ -183,12 +183,12 @@ glx_update_fbconfig(session_t *ps) {
}
if (!ps->psglx->fbconfigs[32]) {
log_error("No FBConfig found for depth 32. Expect crazy things.");
log_error("No FBConfig found for depth 32. compton will try to continue.");
} else {
log_trace("%d-bit: %p, 32-bit: %p", ps->depth,
ps->psglx->fbconfigs[ps->depth]->cfg, ps->psglx->fbconfigs[32]->cfg);
}
log_trace("%d-bit: %p, 32-bit: %p", ps->depth, ps->psglx->fbconfigs[ps->depth]->cfg,
ps->psglx->fbconfigs[32]->cfg);
return true;
}