LICENSE IPL10
ensure, at least, that there is a filehandle for everything we check
}
/* Ok if arg 1 is in AFS or if 2 args and arg 2 is in AFS */
- if (is_afs_fh(fhp1)) {
+ if (fhp1 && is_afs_fh(fhp1)) {
*fhpp = fhp1;
if (fhp2)
*fh2pp = fhp2;
return NULL;
}
- if (is_afs_fh(fhp)) {
+ if (fhp && is_afs_fh(fhp)) {
*fhpp = fhp;
return 1;
}
return NULL;
}
- if (is_afs_fh3(fhp1)) {
+ if (fhp1 && is_afs_fh3(fhp1)) {
*fhpp = fhp1;
if (fhp2)
*fh2pp = fhp2;
return NULL;
}
- if (is_afs_fh3(fhp)) {
+ if (fhp && is_afs_fh3(fhp)) {
*fhpp = fhp;
return 1;
}