projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
883d4d1
)
Perl Module: Avoid forcing scalar value into a pointer.
20120912030512/pspp
author
John Darrington
<john@darrington.wattle.id.au>
Wed, 12 Sep 2012 07:26:21 +0000
(09:26 +0200)
committer
John Darrington
<john@darrington.wattle.id.au>
Wed, 12 Sep 2012 07:26:21 +0000
(09:26 +0200)
The code fragment: struct dictionary *dict = (void *) SvIV (dict_sv);
is dangerous. This fix uses the properl Perl XS mechanism to get
the pointer and the scalar associated with the dictionary.
Reviewed-By: Ben Pfaff
No differences found