"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: rm useless continue
To:
gameoftrees@openbsd.org
Date:
Tue, 8 Nov 2022 23:28:53 +0100

Download raw body.

Thread
  • Tracey Emery:

    rm useless continue

    • Stefan Sperling:

      rm useless continue

On Tue, Nov 08, 2022 at 03:14:33PM -0700, Tracey Emery wrote:
> This removes a useless continue. ok?

Yes, this is redundant.

> diff /home/tracey/src/got
> commit - 3bf54024e7046b0ac7b206cba0f0d5482a8fa8e8
> path + /home/tracey/src/got
> blob - 890ae033826305afdd0fc0401d8ff424ea07eaf6
> file + lib/path.c
> --- lib/path.c
> +++ lib/path.c
> @@ -505,7 +505,6 @@ got_path_find_prog(char **filename, const char *prog)
>  			break;
>  		free(*filename);
>  		*filename = NULL;
> -		continue;
>  	}
>  	free(dup);
>  	return err;
> 
>