diff options
author | rbuj <[email protected]> | 2021-11-27 11:16:04 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-08-20 19:49:59 +0000 |
commit | d9d67f267e6906f7d2f8212081f32b7d58d4afa2 (patch) | |
tree | 6ec673ddc714e9c859871b020274cda3e74445a0 /libmate-desktop | |
parent | 58cfa199535e2c4f86b8b8507e8979a6d23487e4 (diff) | |
download | mate-desktop-d9d67f267e6906f7d2f8212081f32b7d58d4afa2.tar.bz2 mate-desktop-d9d67f267e6906f7d2f8212081f32b7d58d4afa2.tar.xz |
mate-bg: Dereference of null pointer
Diffstat (limited to 'libmate-desktop')
-rw-r--r-- | libmate-desktop/mate-bg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c index 46086d5..5d32425 100644 --- a/libmate-desktop/mate-bg.c +++ b/libmate-desktop/mate-bg.c @@ -2316,7 +2316,7 @@ find_best_size (GSList *sizes, gint width, gint height) best = size; } else if (d == distance) { - if (abs (size->width - width) < abs (best->width - width)) { + if (best && (abs (size->width - width) < abs (best->width - width))) { best = size; } } |