Closed clbr closed 2 years ago
The following patch fixes this.
diff --git a/xclip.c b/xclip.c
index 9c2d157..1d4eb4b 100644
--- a/xclip.c
+++ b/xclip.c
@@ -714,7 +714,7 @@ static int
doOut(Window win)
{
Atom sel_type = None;
- unsigned char *sel_buf; /* buffer for selection data */
+ unsigned char *sel_buf = NULL; /* buffer for selection data */
unsigned long sel_len = 0; /* length of sel_buf */
XEvent evt; /* X Event Structures */
unsigned int context = XCLIB_XCOUT_NONE;
Thank you.
Today's git master.