Message ID | 20180713045311.3910-1-mikey@neuling.org |
---|---|
State | Accepted |
Headers | show |
Series | htm: Add missing return value | expand |
Thanks. Applied to pdbg master. - Alistair On Friday, 13 July 2018 2:53:11 PM AEST Michael Neuling wrote: > Signed-off-by: Michael Neuling <mikey@neuling.org> > --- > libpdbg/htm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libpdbg/htm.c b/libpdbg/htm.c > index a494493935..eecae3c182 100644 > --- a/libpdbg/htm.c > +++ b/libpdbg/htm.c > @@ -1069,7 +1069,7 @@ static int do_htm_dump(struct htm *htm, char *filename) > } > > /* Copy start -> last */ > - lseek(trace_fd, 0, SEEK_SET); > + r = lseek(trace_fd, 0, SEEK_SET); > if (r == -1) > goto out1; > r = copy_file(dump_fd, trace_fd, last); >
diff --git a/libpdbg/htm.c b/libpdbg/htm.c index a494493935..eecae3c182 100644 --- a/libpdbg/htm.c +++ b/libpdbg/htm.c @@ -1069,7 +1069,7 @@ static int do_htm_dump(struct htm *htm, char *filename) } /* Copy start -> last */ - lseek(trace_fd, 0, SEEK_SET); + r = lseek(trace_fd, 0, SEEK_SET); if (r == -1) goto out1; r = copy_file(dump_fd, trace_fd, last);
Signed-off-by: Michael Neuling <mikey@neuling.org> --- libpdbg/htm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)