From 53bd07438d3671dca86df2bf3052f89ee8ce0891 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 17 Dec 2008 11:27:19 -0500 Subject: Be sure to return NULL when returning no properties. --- src/XrrProperty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XrrProperty.c b/src/XrrProperty.c index 8377fff..d3d3246 100644 --- a/src/XrrProperty.c +++ b/src/XrrProperty.c @@ -41,7 +41,7 @@ XRRListOutputProperties (Display *dpy, RROutput output, int *nprop) int nbytes, nbytesRead, rbytes; int i; xRRQueryVersionReq *vreq; - Atom *props; + Atom *props = NULL; RRCheckExtension (dpy, info, 0); -- cgit v1.2.1