diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-03-08 17:24:09 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-03-08 17:24:09 +0100 |
commit | 171482ee70ca74e907ea892f33daf8c07433dcd8 (patch) | |
tree | 4db9aeda3829ad872c23e6ab5254cc107a6325f7 /runtime/librsgt.c | |
parent | c29b6b6415f668cc3933e7fcc40425fe9f18607f (diff) | |
download | rsyslog-171482ee70ca74e907ea892f33daf8c07433dcd8.tar.gz rsyslog-171482ee70ca74e907ea892f33daf8c07433dcd8.tar.bz2 rsyslog-171482ee70ca74e907ea892f33daf8c07433dcd8.zip |
some cleanup
Diffstat (limited to 'runtime/librsgt.c')
-rw-r--r-- | runtime/librsgt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/librsgt.c b/runtime/librsgt.c index 9d112a08..f2ad2727 100644 --- a/runtime/librsgt.c +++ b/runtime/librsgt.c @@ -272,7 +272,6 @@ readStateFile(gtctx ctx) { int fd; struct rsgtstatefile sf; - int rr; fd = open((char*)ctx->statefilename, O_RDONLY|O_NOCTTY|O_CLOEXEC, 0600); if(fd == -1) goto err; @@ -282,7 +281,7 @@ readStateFile(gtctx ctx) ctx->lenBlkStrtHash = sf.lenHash; ctx->blkStrtHash = calloc(1, ctx->lenBlkStrtHash); - if((rr=read(fd, ctx->blkStrtHash, ctx->lenBlkStrtHash)) + if(read(fd, ctx->blkStrtHash, ctx->lenBlkStrtHash) != ctx->lenBlkStrtHash) { free(ctx->blkStrtHash); goto err; |