diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 10:18:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 11:57:46 +0000 |
commit | 61f88fb318f4b2fce2bb6883d46ed08c523b1605 (patch) | |
tree | a932bab2470b3d5f8f50244b64d0ca69a54a024c /solenv | |
parent | ec3dcdfba5c4ae701a3ae22f31bdd8849367e4b3 (diff) |
coverity#736094 Argument cannot be negative
Change-Id: I8368217e7fb40322de1f03ef68c1ddbe2fc5652a
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/concat-deps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c index fec98ee2931f..a64723f476d7 100644 --- a/solenv/bin/concat-deps.c +++ b/solenv/bin/concat-deps.c @@ -604,7 +604,7 @@ int fd; size = &local_size; } *size = file_get_size(name, &rc); - if (!rc) + if (!rc && *size >= 0) { fd = open(name, FILE_O_RDONLY | FILE_O_BINARY); if (!(fd == -1)) |