From: Richard W.M. Jones Date: Wed, 26 Jan 2011 14:15:23 +0000 (+0000) Subject: generator: Fix generation of library-side stubs with optional String arguments. X-Git-Tag: 1.9.7~14 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=2110f6fa8c397f74e38408612d5514a42f3b9cee;p=libguestfs.git generator: Fix generation of library-side stubs with optional String arguments. --- diff --git a/generator/generator_c.ml b/generator/generator_c.ml index 0b3c850..46ba691 100644 --- a/generator/generator_c.ml +++ b/generator/generator_c.ml @@ -1047,7 +1047,7 @@ check_state (guestfs_h *g, const char *caller) pr " else\n"; pr " args.%s = 0;\n" n | String n -> - pr " args.%s = (char *) %s;\n" n n; + pr " args.%s = (char *) optargs->%s;\n" n n; pr " else\n"; pr " args.%s = (char *) \"\";\n" n | _ -> assert false