Meaning of "Use of uninitialized value in subroutine entry"
In an XS routine, if a line such as
plain = newSV (0);
is followed by
sv_catpvn (plain, (const char *) out_buffer, have);
it causes this error.
The "in subroutine entry" simply means that the last op was the subroutine entry one. The "use of uninitialized value" means that it attempted to add on to a scalar.
Web links
- Re: Source of warning message: "Use of uninitialized value in subroutine entry" by Stevie-O
- Handling errors in Perl XS modules
Copyright © Ben Bullock 2009-2024. All
rights reserved.
For comments, questions, and corrections, please email
Ben Bullock
(benkasminbullock@gmail.com).
/
Privacy /
Disclaimer