]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/filemode.c
_PDCLIB_flushbuffer for win32. correct seeking behaviour.
[pdclib] / functions / _PDCLIB / filemode.c
index ded5408542576274ad43a910a1e3b9d2776b4e6b..454810626d74a616dc47a75380487a2976560033 100644 (file)
@@ -15,6 +15,8 @@
 */
 unsigned int _PDCLIB_filemode( char const * const mode )
 {
+    if(!mode) return 0;
+
     unsigned rc = 0;
     switch ( mode[0] )
     {