[Pdbg] [PATCH] htm: Add missing return value

Alistair Popple alistair at popple.id.au
Fri Jul 13 15:31:59 AEST 2018


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 at 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);
> 




More information about the Pdbg mailing list