summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-04-11 11:19:27 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2016-04-11 11:19:27 +0200
commit14b662590144571985897855f9973f16e386e0ce (patch)
tree1bd53b773f592dc583aff4635537a10a6f89fcaa /src/journal
parentcbe22206143a04f573e5cfbc8c839ddf2fd8c5dc (diff)
parent7236ce6e9e379948217c31f38b48de6448521162 (diff)
Merge pull request #2996 from keszybz/coverity-fixes
Coverity fixes
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/fsprg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/fsprg.c b/src/journal/fsprg.c
index 8956eb1d58..612b10f3a9 100644
--- a/src/journal/fsprg.c
+++ b/src/journal/fsprg.c
@@ -58,7 +58,7 @@ static gcry_mpi_t mpi_import(const void *buf, size_t buflen) {
gcry_mpi_t h;
unsigned len;
- gcry_mpi_scan(&h, GCRYMPI_FMT_USG, buf, buflen, NULL);
+ assert_se(gcry_mpi_scan(&h, GCRYMPI_FMT_USG, buf, buflen, NULL) == 0);
len = (gcry_mpi_get_nbits(h) + 7) / 8;
assert(len <= buflen);
assert(gcry_mpi_cmp_ui(h, 0) >= 0);