summaryrefslogtreecommitdiff
path: root/StdLib/LibC
diff options
context:
space:
mode:
Diffstat (limited to 'StdLib/LibC')
-rw-r--r--StdLib/LibC/Stdio/fgetpos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/StdLib/LibC/Stdio/fgetpos.c b/StdLib/LibC/Stdio/fgetpos.c
index 61d6f75..8dd0fd6 100644
--- a/StdLib/LibC/Stdio/fgetpos.c
+++ b/StdLib/LibC/Stdio/fgetpos.c
@@ -56,7 +56,7 @@ fgetpos(FILE *fp, fpos_t *pos)
_DIAGASSERT(fp != NULL);
_DIAGASSERT(pos != NULL);
- if(fp == NULL) {
+ if((fp == NULL) || (pos == NULL)) {
errno = EINVAL;
return (EOF);
}