X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Ffilemode.c;h=454810626d74a616dc47a75380487a2976560033;hb=cc343a7e1383e2f6b8309cb7cb36ab8250586cb4;hp=ded5408542576274ad43a910a1e3b9d2776b4e6b;hpb=217a2f477ad6dbbac816981589ee2f5a81dffd67;p=pdclib.old diff --git a/functions/_PDCLIB/filemode.c b/functions/_PDCLIB/filemode.c index ded5408..4548106 100644 --- a/functions/_PDCLIB/filemode.c +++ b/functions/_PDCLIB/filemode.c @@ -15,6 +15,8 @@ */ unsigned int _PDCLIB_filemode( char const * const mode ) { + if(!mode) return 0; + unsigned rc = 0; switch ( mode[0] ) {