Skip to content

Commit 08fa170

Browse files
committed
NFS: A pointer should not be compared to zero (improve code readability)
1 parent f4a7688 commit 08fa170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

print-nfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ interp_reply(netdissect_options *ndo,
15581558
if (dp == NULL)
15591559
goto trunc;
15601560
if (v3) {
1561-
if (parsewccres(ndo, dp, ndo->ndo_vflag, &nfserr) == 0)
1561+
if (parsewccres(ndo, dp, ndo->ndo_vflag, &nfserr) == NULL)
15621562
goto trunc;
15631563
} else {
15641564
if (parseattrstat(ndo, dp, !ndo->ndo_qflag, 0, &nfserr) == 0)

0 commit comments

Comments
 (0)