[Pkg-libvirt-commits] [libguestfs] 37/54: java: Fix bogus construction of all RStructList returned values (RHBZ#1073906).

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 9 11:21:16 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch debian
in repository libguestfs.

commit eb1b9aeaee3fe407deda52e2d58a21284cfa5bf0
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Fri Mar 7 13:49:52 2014 +0000

    java: Fix bogus construction of all RStructList returned values (RHBZ#1073906).
    
    Thanks Maarten on IRC for spotting the problem.
    
    (cherry picked from commit d00840d727e4040a7958ecc613599d6ec2851e53)
---
 generator/java.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generator/java.ml b/generator/java.ml
index 2477e35..db08956 100644
--- a/generator/java.ml
+++ b/generator/java.ml
@@ -1197,7 +1197,7 @@ and generate_java_struct_list_return typ jtyp cols =
         pr "    fl = (*env)->GetFieldID (env, cl, \"%s\", \"C\");\n" name;
         pr "    (*env)->SetLongField (env, jfl, fl, r->val[i].%s);\n" name;
   ) cols;
-  pr "    (*env)->SetObjectArrayElement (env, jfl, i, jfl);\n";
+  pr "    (*env)->SetObjectArrayElement (env, jr, i, jfl);\n";
   pr "  }\n";
   pr "  guestfs_free_%s_list (r);\n" typ;
   pr "  return jr;\n"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list