[PATCH] main_edit.c: Fix Unchecked return value (CID #1255318)
Gedare Bloom
gedare at rtems.org
Fri Mar 5 23:26:53 UTC 2021
ok
On Fri, Mar 5, 2021 at 1:55 PM Ryan Long <thisisryanlong at gmail.com> wrote:
>
> CID 1255318: Unchecked return value in display_line().
>
> Updates #4257
> ---
> 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 a011049..8ac7eee 100644
> --- a/cpukit/libmisc/shell/main_edit.c
> +++ b/cpukit/libmisc/shell/main_edit.c
> @@ -1089,7 +1089,7 @@ static void display_line(struct editor *ed, int pos, int fullline) {
> int selstart, selend, ch;
> char *s;
>
> - get_selection(ed, &selstart, &selend);
> + (void) get_selection(ed, &selstart, &selend);
> while (col < maxcol) {
> if (margin == 0) {
> if (!hilite && pos >= selstart && pos < selend) {
> --
> 1.8.3.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list