#4261 closed defect (fixed)

getgrent.c: Unchecked return value error spotted by Coverity

Reported by: Ryan Long Owned by: Ryan Long <ryan.long@…>
Priority: normal Milestone: 6.1
Component: lib Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

CID 1459004: Unchecked return value in endgrent().

102  if (ctx->fp != NULL) {
103    fclose(ctx->fp);
104  }
105
106  free(ctx);
   CID 1459004 (#1 of 1): Unchecked return value (CHECKED_RETURN)3. check_return: Calling pthread_setspecific without checking return value (as is done elsewhere 5 out of 6 times).
107  pthread_setspecific(grp_key, NULL);

Change History (1)

comment:1 Changed on 02/26/21 at 22:56:25 by Ryan Long <ryan.long@…>

Owner: set to Ryan Long <ryan.long@…>
Resolution: fixed
Status: newclosed

In e5e58da/rtems:

getgrent.c: Fix Unchecked return value error (CID #1459004)

CID 1459004: Unchecked return value in endgrent().

Closes #4261

Note: See TracTickets for help on using tickets.