Another crash fix
This commit is contained in:
parent
ccd40d757b
commit
185fff8465
1 changed files with 7 additions and 1 deletions
|
@ -90,7 +90,13 @@
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue