29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
|
|
From a24c9df52ce15f7ad5742e0693ef6108d7a2ea10 Mon Sep 17 00:00:00 2001
|
||
|
|
From: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Thu, 24 Nov 2022 19:59:54 +0800
|
||
|
|
Subject: [PATCH] generator: Fix string formatting
|
||
|
|
|
||
|
|
remove excessive arguments.
|
||
|
|
|
||
|
|
Signed-off-by: Philipp Hahn <hahn@univention.de>
|
||
|
|
Signed-off-by: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
generator.py | 2 +----
|
||
|
|
1 file changed, 1 insertion(+), 1 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/generator.py b/generator.py
|
||
|
|
index 426f007..5e89136 100755
|
||
|
|
--- a/generator.py
|
||
|
|
+++ b/generator.py
|
||
|
|
@@ -766,7 +766,7 @@ def print_function_wrapper(module, name, output, export, include):
|
||
|
|
if file == "python_accessor":
|
||
|
|
if args[1][1] == "char *":
|
||
|
|
c_call = "\n VIR_FREE(%s->%s);\n" % (
|
||
|
|
- args[0][0], args[1][0], args[0][0], args[1][0])
|
||
|
|
+ args[0][0], args[1][0])
|
||
|
|
c_call = c_call + " %s->%s = (%s)strdup((const xmlChar *)%s);\n" % (args[0][0],
|
||
|
|
args[1][0], args[1][1], args[1][0])
|
||
|
|
else:
|
||
|
|
--
|
||
|
|
2.18.2
|