Skip to content

Commit

Permalink
Merged in devel (pull request #2)
Browse files Browse the repository at this point in the history
check for errors

Approved-by: David Barina <ibarina@fit.vutbr.cz>
  • Loading branch information
xbarin02 committed Nov 30, 2020
2 parents ce7e977 + ba7e605 commit 2d57b1a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ int dump_frame(struct frame *frame)
}
err = dump_frame_header(frame, 3, stream);
RETURN_IF(err);
dump_frame_body(frame, 3, stream);
err = dump_frame_body(frame, 3, stream);
RETURN_IF(err);
fclose(stream);
break;
case 3:
Expand All @@ -268,7 +269,8 @@ int dump_frame(struct frame *frame)
}
err = dump_frame_header(frame, 3, stream);
RETURN_IF(err);
dump_frame_body(frame, 3, stream);
err = dump_frame_body(frame, 3, stream);
RETURN_IF(err);
fclose(stream);
break;
case 1:
Expand All @@ -278,7 +280,8 @@ int dump_frame(struct frame *frame)
}
err = dump_frame_header(frame, 1, stream);
RETURN_IF(err);
dump_frame_body(frame, 1, stream);
err = dump_frame_body(frame, 1, stream);
RETURN_IF(err);
fclose(stream);
break;
default:
Expand Down

0 comments on commit 2d57b1a

Please sign in to comment.