* mode++;
*/
}
- f = (*tab->Open) (aTHX_ tab, layers, n - 1, mode, fd, imode, perm,
- f, narg, args);
+ f = tab && tab->Open ?
+ (*tab->Open) (aTHX_ tab, layers, n - 1, mode, fd, imode, perm,
+ f, narg, args)
+ : Nullfp;
if (f) {
if (PerlIO_push(aTHX_ f, self, mode, PerlIOArg) == 0) {
/*
#endif
}
}
+ else
+ SETERRNO(EINVAL, SS_IVCHAN);
}
return f;
}