mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Fix always-true condition
CrCascadePrivate->sheets is a statically-sized array inside the struct; it can't be NULL. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/861#note_659216
This commit is contained in:
parent
582bfe830a
commit
01c0803a4a
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ cr_cascade_destroy (CRCascade * a_this)
|
|||
if (PRIVATE (a_this)) {
|
||||
gulong i = 0;
|
||||
|
||||
for (i = 0; PRIVATE (a_this)->sheets && i < NB_ORIGINS; i++) {
|
||||
for (i = 0; i < NB_ORIGINS; i++) {
|
||||
if (PRIVATE (a_this)->sheets[i]) {
|
||||
if (cr_stylesheet_unref
|
||||
(PRIVATE (a_this)->sheets[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue