aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-08-30 03:56:57 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-10-03 23:17:06 +0200
commit7ba7437fc31310e256b9c92dd72078c7bb396184 (patch)
tree0781c700fd56f512e4c00df72b96a7f2b917d885
parentfa8c377d6befb9131daf854ee600e1ebc9507290 (diff)
downloadperl-URPM-7ba7437fc31310e256b9c92dd72078c7bb396184.tar
perl-URPM-7ba7437fc31310e256b9c92dd72078c7bb396184.tar.gz
perl-URPM-7ba7437fc31310e256b9c92dd72078c7bb396184.tar.bz2
perl-URPM-7ba7437fc31310e256b9c92dd72078c7bb396184.tar.xz
perl-URPM-7ba7437fc31310e256b9c92dd72078c7bb396184.zip
coverity: add a comment about "Argument cannot be negative"
"fd" is passed to a parameter that cannot be negative.
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 03b11a2..287efbc 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -985,7 +985,7 @@ open_archive(char *filename, int *empty_archive) {
}
}
}
- close(fd);
+ close(fd); // we rely on EBADF in testsuite
return rfd;
}