libxc: remove unnecessary double indirection from xc_readconsolering

The double indirection has been unnecessary since 9867:ec61a8c25429,
there is no possibility of the buffer being reallocated now.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
Ian Campbell committed 2010-10-18 16:52:37 +01:00
1 parent f114466a23
commit e43181a5eb
5 files changed
+6 -7

No files matched your search

+2 -2
View File
@@ -1116,7 +1116,7 @@ static PyObject *pyxc_readconsolering(XcObject *self,
!str )
return NULL;
ret = xc_readconsolering(self->xc_handle, &str, &count, clear,
ret = xc_readconsolering(self->xc_handle, str, &count, clear,
incremental, &index);
if ( ret < 0 )
return pyxc_error_to_exception(self->xc_handle);
@@ -1133,7 +1133,7 @@ static PyObject *pyxc_readconsolering(XcObject *self,
str = ptr + count;
count = size - count;
ret = xc_readconsolering(self->xc_handle, &str, &count, clear,
ret = xc_readconsolering(self->xc_handle, str, &count, clear,
1, &index);
if ( ret < 0 )
break;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.