kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=6e3a32598062814524f538d872a6d53b279d2b3e

commit 6e3a32598062814524f538d872a6d53b279d2b3e
Author: Kim Woelders <k...@woelders.dk>
Date:   Mon Mar 5 21:49:19 2018 +0100

    xprop.c: Fix warnings found with -O3
    
    If num = 0 realloc() below would use uninitialized lst if op != REMOVE.
    
    However, ex_window_prop_xid_list_change() is currently not used by e16.
---
 src/xprop.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/xprop.c b/src/xprop.c
index 16a7adc7..45b19ec1 100644
--- a/src/xprop.c
+++ b/src/xprop.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004-2015 Kim Woelders
+ * Copyright (C) 2004-2018 Kim Woelders
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -434,6 +434,7 @@ ex_window_prop_xid_list_change(EX_Window win, EX_Atom atom,
    EX_ID              *lst, *lst_r;
    int                 i, num;
 
+   lst = NULL;
    num = ex_window_prop_xid_list_get(win, atom, type, &lst);
    if (num < 0)
       return;                  /* Error - assuming invalid window */

-- 


Reply via email to