Another crash fix

This commit is contained in:
o1 2015-01-15 09:19:17 +03:00
parent ccd40d757b
commit 185fff8465

View file

@ -91,6 +91,12 @@
return (position >= 0) && (position < size); return (position >= 0) && (position < size);
} }
if ( _fd == NULL ) {
offset = 0;
size = 0;
return NO;
}
return (fseek(_fd, position, whence) == 0); return (fseek(_fd, position, whence) == 0);
} }