summaryrefslogtreecommitdiffstats
path: root/runtime/librsgt.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/librsgt.c')
-rw-r--r--runtime/librsgt.c3
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;