[rtems commit] shell/main_edit.c: Note return value not checked

Joel Sherril joel at rtems.org
Tue Nov 25 18:57:22 UTC 2014


Module:    rtems
Branch:    master
Commit:    d15202490cf4eb3d4e0762bda99c7156beef5cb7
Changeset: http://git.rtems.org/rtems/commit/?id=d15202490cf4eb3d4e0762bda99c7156beef5cb7

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Mon Nov 24 17:11:55 2014 -0600

shell/main_edit.c: Note return value not checked

Coverity Id 1255320 spotted an unchecked return value.

---

 cpukit/libmisc/shell/main_edit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libmisc/shell/main_edit.c b/cpukit/libmisc/shell/main_edit.c
index a73bc0d..212b212 100644
--- a/cpukit/libmisc/shell/main_edit.c
+++ b/cpukit/libmisc/shell/main_edit.c
@@ -2213,7 +2213,7 @@ static int rtems_shell_main_edit(int argc, char *argv[])
   setvbuf(stdout, NULL, 0, 8192);
 
 #if defined(__linux__) || defined(__rtems__)
-  tcgetattr(0, &orig_tio);
+  (void) tcgetattr(0, &orig_tio);
 #if !defined(__rtems__)
   cfmakeraw(&tio);
   tcsetattr(0, TCSANOW, &tio);




More information about the vc mailing list