xc_cputopo_t *cputopo;
libxl_cputopology *ret = NULL;
int i;
- unsigned num_cpus;
+ unsigned num_cpus = 0;
/* Setting buffer to NULL makes the call return number of CPUs */
if (xc_cputopoinfo(ctx->xch, &num_cpus, NULL))
uint32_t *distance;
libxl_numainfo *ret = NULL;
int i, j;
- unsigned num_nodes;
+ unsigned num_nodes = 0;
if (xc_numainfo(ctx->xch, &num_nodes, NULL, NULL)) {
LOGE(ERROR, "Unable to determine number of nodes");
struct timeval tv;
int cx_cap = 0, px_cap = 0;
xc_cputopo_t *cputopo = NULL;
- unsigned max_cpus;
+ unsigned max_cpus = 0;
if ( xc_cputopoinfo(xc_handle, &max_cpus, NULL) != 0 )
{
void cpu_topology_func(int argc, char *argv[])
{
xc_cputopo_t *cputopo = NULL;
- unsigned max_cpus;
+ unsigned max_cpus = 0;
int i, rc;
if ( xc_cputopoinfo(xc_handle, &max_cpus, NULL) != 0 )
static PyObject *pyxc_topologyinfo(XcObject *self)
{
xc_cputopo_t *cputopo = NULL;
- unsigned i, num_cpus;
+ unsigned i, num_cpus = 0;
PyObject *ret_obj = NULL;
PyObject *cpu_to_core_obj, *cpu_to_socket_obj, *cpu_to_node_obj;
static PyObject *pyxc_numainfo(XcObject *self)
{
- unsigned i, j, num_nodes;
+ unsigned i, j, num_nodes = 0;
uint64_t free_heap;
PyObject *ret_obj = NULL, *node_to_node_dist_list_obj;
PyObject *node_to_memsize_obj, *node_to_memfree_obj;