Skip to content

Commit

Permalink
check for NULL in SvPDLV
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jan 29, 2024
1 parent f3a52bb commit 5aafd6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Basic/Core/pdlcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ pdl* pdl_SvPDLV ( SV* sv ) {

/* Return the pdl * pointer */
ret = INT2PTR(pdl *, SvIV(sv2));
if (!ret) croak("Fatal error: ndarray address is NULL");

/* Final check -- make sure it has the right magic number */
if(ret->magicno != PDL_MAGICNO) {
Expand Down

0 comments on commit 5aafd6e

Please sign in to comment.