PDLPorters / perl5-PGPLOT

Perl PGPLOT wrapper
https://p3rl.org/PGPLOT
Other
0 stars 4 forks source link

uninitialized value in subroutine entry at t/t9.t #11

Closed djerius closed 2 years ago

djerius commented 2 years ago

PGPLOT 2.27, perl 5.30.0

% PGPLOT_DEV=/xw perl t/t9.t
# Testing PGPLOT 5.0 colour image routines
# 32768 bytes read
# 16384 element image stored
# Plotting...
# Entering interactive PGBAND test MODE=0, hit any key, Q to exit early...
Use of uninitialized value in subroutine entry at t/t9.t line 74.
Use of uninitialized value in subroutine entry at t/t9.t line 74.
mohawk2 commented 2 years ago

That reads:

   PGPLOT::pgband($mode,0,12500,12500,my $x,my $y,my $ch);

Probably this wants giving a default for x and y: https://github.com/PDLPorters/perl5-PGPLOT/blob/04883c847b83d156392f50b8cd0da6cc6eab69d0/PGPLOT.xs#L96-L110

mohawk2 commented 2 years ago

Instead, what was needed was to use the NO_INIT feature. Thanks for the report! Released as 2.28.