xiaoxiang781216 commented on code in PR #10602: URL: https://github.com/apache/nuttx/pull/10602#discussion_r1361809261
########## libs/libc/stdio/lib_setvbuf.c: ########## @@ -133,7 +134,7 @@ int setvbuf(FAR FILE *stream, FAR char *buffer, int mode, size_t size) /* Return EBADF if the file is not open */ - if (stream->fs_fd < 0) + if (fd < 0) Review Comment: It's impossible to handle this type of error reliably. It's caller's responsibility to pass stream which comes from fopen/fdopen/fopencookie. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org