Merge pull request #117 from olerem/jcat-fixup

jcat: inverse if logic
pull/118/head
Marc Kleine-Budde 2019-01-04 14:43:25 +01:00 committed by GitHub
commit 02b87eb120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
jcat.c
View File

@ -89,7 +89,7 @@ static int jcat_sendfile(struct jcat_priv *priv, int out_fd, int in_fd,
goto do_nofree;
}
if (!offset) {
if (offset) {
/* Save current file offset and set offset to value in '*offset' */
@ -148,7 +148,7 @@ static int jcat_sendfile(struct jcat_priv *priv, int out_fd, int in_fd,
tot_sent += num_sent;
}
if (!offset) {
if (offset) {
/* Return updated file offset in '*offset', and reset the file offset
to the value it had when we were called. */