Message-ID: <
3C15C133.8@stason.org>
p4raw-id: //depot/perl@13619
{
PerlIOl *l = NULL;
Newc('L',l,tab->size,char,PerlIOl);
- if (l) {
+ if (l && f) {
Zero(l, tab->size, char);
l->next = *f;
l->tab = tab;
PerlIO_apply_layers(pTHX_ PerlIO *f, const char *mode, const char *names)
{
int code = 0;
- if (names) {
+ if (f && names) {
PerlIO_list_t *layers = PerlIO_list_alloc(aTHX);
code = PerlIO_parse_layers(aTHX_ layers, names);
if (code == 0) {