diff options
Diffstat (limited to 'nuttx/lib/stdio/lib_fgetpos.c')
-rw-r--r-- | nuttx/lib/stdio/lib_fgetpos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/lib/stdio/lib_fgetpos.c b/nuttx/lib/stdio/lib_fgetpos.c index a641db481..af07f7387 100644 --- a/nuttx/lib/stdio/lib_fgetpos.c +++ b/nuttx/lib/stdio/lib_fgetpos.c @@ -107,7 +107,7 @@ int fgetpos(FAR FILE *stream, FAR fpos_t *pos) #if CONFIG_DEBUG if (!stream || !pos) { - errno = EINVAL; + set_errno(EINVAL); return ERROR; } #endif |