From: Uma Sharma Subject: [OPW PATCH] tools/libxl/xl_cmdimpl.c : Calling init function Date: Thu, 16 Oct 2014 01:51:12 +0530 Message-ID: <543ed73e.c3f9440a.4059.10bb@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: George.Dunlap@eu.citrix.com List-Id: xen-devel@lists.xenproject.org This patch calls init function before using libxl_domain_sched_params in sched_domain_get(). Signed-off-by: Uma Sharma --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index c734f79..5b4de28 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -5157,6 +5157,7 @@ static int sched_domain_get(libxl_scheduler sched, int domid, { int rc; + libxl_domain_sched_params_init(scinfo); rc = libxl_domain_sched_params_get(ctx, domid, scinfo); if (rc) { fprintf(stderr, "libxl_domain_sched_params_get failed.\n");