[metacity] xprops: remove unneeded NULL check
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] xprops: remove unneeded NULL check
- Date: Sun, 14 Mar 2021 18:59:54 +0000 (UTC)
commit 141096385cb170b3dd00fed812c0c21db85a0b33
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 20:31:49 2021 +0200
xprops: remove unneeded NULL check
Coverity CID: #1418331
src/core/xprops.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/core/xprops.c b/src/core/xprops.c
index 4b701af7c..4175611d3 100644
--- a/src/core/xprops.c
+++ b/src/core/xprops.c
@@ -795,11 +795,8 @@ wm_hints_from_results (GetPropertyResults *results,
else
hints->window_group = 0;
- if (results->prop)
- {
- XFree (results->prop);
- results->prop = NULL;
- }
+ XFree (results->prop);
+ results->prop = NULL;
*hints_p = hints;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]