Skip to content

Commit

Permalink
NFS: A pointer should not be compared to zero (improve code readability)
Browse files Browse the repository at this point in the history
(cherry picked from commit 08fa170)
  • Loading branch information
fxlb committed Oct 12, 2023
1 parent d954601 commit e736b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion print-nfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,7 @@ interp_reply(netdissect_options *ndo,
if (dp == NULL)
goto trunc;
if (v3) {
if (parsewccres(ndo, dp, ndo->ndo_vflag, &nfserr) == 0)
if (parsewccres(ndo, dp, ndo->ndo_vflag, &nfserr) == NULL)
goto trunc;
} else {
if (parseattrstat(ndo, dp, !ndo->ndo_qflag, 0, &nfserr) == 0)
Expand Down

0 comments on commit e736b63

Please sign in to comment.