aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2010-05-22 22:32:08 +0000
committerokan2010-05-22 22:32:08 +0000
commitec8920158f9b3603f061c0d354c9b77cb6ec69f7 (patch)
treec80dd295f71431dc7cf11e93324fdce47d331f11
parent8a70adb0c9439e853b0688eecfa1c041c2e20598 (diff)
downloadcwm-ec8920158f9b3603f061c0d354c9b77cb6ec69f7.tar.gz
initialize nitems
ok oga@
Diffstat (limited to '')
-rw-r--r--xutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xutil.c b/xutil.c
index 2b482f5..2473ecc 100644
--- a/xutil.c
+++ b/xutil.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: xutil.c,v 1.31 2010/05/22 22:10:31 okan Exp $
+ * $Id: xutil.c,v 1.32 2010/05/22 22:32:08 okan Exp $
*/
#include <sys/param.h>
@@ -155,7 +155,7 @@ int
xu_getstrprop(Window win, Atom atm, char **text) {
XTextProperty prop;
char **list;
- int nitems;
+ int nitems = 0;
*text = NULL;