]> xenbits.xensource.com Git - libvirt.git/commit
More paranoid initialization of 'nparams' variable in dispatch code
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 2 May 2013 11:36:53 +0000 (12:36 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 3 May 2013 09:29:07 +0000 (10:29 +0100)
commit329b7602a10ecf20343a6a84c2abd41da38a5175
treecbe40feb0a1aa1f92187ab98afa5e76f47e5ad3d
parent31dbbb667f7c711a18bd106358226685674c0605
More paranoid initialization of 'nparams' variable in dispatch code

Since the 'nparams' variable passed to virTypedParametersFree is
supposed to represent the size of the 'params' array, it is bad
practice to initialize it to a non-zero value, until the array
has been allocated.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
daemon/remote.c