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