X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Ffilemode.c;h=454810626d74a616dc47a75380487a2976560033;hb=04ff9a4a124eaa87d5d26d90077fb4ed15f3277f;hp=ded5408542576274ad43a910a1e3b9d2776b4e6b;hpb=5fd032eae66fba700cb9927840222b068c62361e;p=pdclib 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] ) {