[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xend: Fix parameters to PyArg_ParseTupleAndKeywords()



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1259910025 0
# Node ID fb8f879b6428b541970a296333f0fe47fc38bbff
# Parent  ecda56356037f8f1fd56734fda920461d144643d
xend: Fix parameters to PyArg_ParseTupleAndKeywords()

The kwd_list parameter PyArg_ParseTupleAndKeywords() must be a
NULL-terminated list.

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
---
 tools/python/xen/lowlevel/xc/xc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r ecda56356037 -r fb8f879b6428 tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Fri Dec 04 06:59:33 2009 +0000
+++ b/tools/python/xen/lowlevel/xc/xc.c Fri Dec 04 07:00:25 2009 +0000
@@ -406,7 +406,7 @@ static PyObject *pyxc_getBitSize(XcObjec
     PyObject *info_type;
     char *image = NULL, *cmdline = "", *features = NULL;
     int type = 0;
-    static char *kwd_list[] = { "image", "cmdline", "features"};
+    static char *kwd_list[] = { "image", "cmdline", "features", NULL };
     if ( !PyArg_ParseTupleAndKeywords(args, kwds, "sss", kwd_list,
                                       &image, &cmdline, &features) )
         return NULL;
@@ -1642,7 +1642,7 @@ static PyObject *pyxc_tmem_shared_auth(X
     char *uuid_str;
     int rc;
 
-    static char *kwd_list[] = { "cli_id", "uuid_str", "arg1" };
+    static char *kwd_list[] = { "cli_id", "uuid_str", "arg1", NULL };
 
     if ( !PyArg_ParseTupleAndKeywords(args, kwds, "isi", kwd_list,
                                    &cli_id, &uuid_str, &arg1) )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.