git.annexia.org
/
hivex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97c3cd7
)
perl: Fix $h->value_value method when returning an empty value.
author
Richard Jones
<rjones@redhat.com>
Thu, 25 Mar 2010 19:39:07 +0000
(19:39 +0000)
committer
Richard Jones
<rjones@redhat.com>
Thu, 25 Mar 2010 19:40:48 +0000
(19:40 +0000)
Previously this didn't correctly return an empty registry
value. In this case the length argument to newSVpv would
be 0 which tells Perl to try to calculate the length (we
want newSVpvn instead).
generator/generator.ml
patch
|
blob
|
history
diff --git
a/generator/generator.ml
b/generator/generator.ml
index
230b66b
..
96d198d
100755
(executable)
--- a/
generator/generator.ml
+++ b/
generator/generator.ml
@@
-2439,7
+2439,7
@@
DESTROY (h)
name;
pr " EXTEND (SP, 2);\n";
pr " PUSHs (sv_2mortal (newSViv (type)));\n";
- pr " PUSHs (sv_2mortal (newSVpv (r, len)));\n";
+ pr " PUSHs (sv_2mortal (newSVpv
n
(r, len)));\n";
pr " free (r);\n";
| RInt64 ->