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

[Libguestfs] [PATCH] python: Fixed syntax errors in python/guestfs-py.c



Signed-off-by: Masami HIRATA <msmhrt gmail com>
---
 generator/generator_python.ml |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generator/generator_python.ml b/generator/generator_python.ml
index dc9cbca..b11df6e 100644
--- a/generator/generator_python.ml
+++ b/generator/generator_python.ml
@@ -391,7 +391,7 @@ free_strings (char **argv)
               pr "    optargs_s.%s = PyString_AsString (py_%s);\n" n n;
               pr "#else\n";
               pr "    PyObject *bytes;\n";
-              pr "    bytes = PyUnicode_AsUTF8String (py_%s));\n" n;
+              pr "    bytes = PyUnicode_AsUTF8String (py_%s);\n" n;
               pr "    optargs_s.%s = PyBytes_AS_STRING (bytes);\n" n;
               pr "#endif\n";
             | OStringList _ ->
-- 
1.7.9.6 (Apple Git-31.1)


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