Created
April 16, 2015 09:36
-
-
Save mattn/72b4db631191c52b5d42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cop.h b/cop.h | |
index ce0cd54..f953991 100644 | |
--- a/cop.h | |
+++ b/cop.h | |
@@ -1111,7 +1111,8 @@ typedef struct stackinfo PERL_SI; | |
#define PUSHSTACKi(type) \ | |
STMT_START { \ | |
- PERL_SI *next = PL_curstackinfo->si_next; \ | |
+ PERL_SI *next = PL_curstackinfo ? \ | |
+ PL_curstackinfo->si_next : NULL; \ | |
DEBUG_l({ \ | |
int i = 0; PERL_SI *p = PL_curstackinfo; \ | |
while (p) { i++; p = p->si_prev; } \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment