diff --git a/Xi/xiproperty.c b/Xi/xiproperty.c index 01a0f3ea52..9575d90731 100644 --- a/Xi/xiproperty.c +++ b/Xi/xiproperty.c @@ -829,6 +829,7 @@ static int _writeDevProps(x_rpcbuf_t *rpcbuf, XID devId, size_t n = 0; for (XIPropertyPtr p = dev->properties.properties; p; p = p->next) { + n++; if (!x_rpcbuf_write_CARD32(rpcbuf, p->propertyName)) return BadAlloc; }