git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
57c143d
)
perl: use newSVpvn for variable length strings.
author
Richard Jones
<rjones@redhat.com>
Thu, 25 Mar 2010 19:44:22 +0000
(19:44 +0000)
committer
Richard Jones
<rjones@redhat.com>
Thu, 25 Mar 2010 19:44:22 +0000
(19:44 +0000)
Previously we used newSVpv (str, len), but if len == 0 then
this means Perl tries to calculate the string length using
strlen(3). This is not desirable when we know the length, in
which case we should use newSVpvn instead.
No differences found