[gnutls-devel] GnuTLS | remove autogen dependency (!1506)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Jan 13 20:45:49 CET 2022




Alexander Sosedkin commented on a discussion on src/cfg.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1506#note_810133183

> +			if (c == EOF) {
> +				break;
> +			}
> +			if (c == '\n') {
> +				buffer_append(&buffer, ' ');
> +			} else if (c == quote_char) {
> +				buffer_append(&buffer, c);
> +			}
> +		} else if (c == quote_char) {
> +			break;
> +		} else {
> +			buffer_append(&buffer, c);
> +		}
> +	}
> +
> +	return buffer.length == 0 ? strdup("") : buffer.data;

OK. I don't see a problem with that, though I have a feeling that initializing with a `""` and not NULL could've been easier to follow.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1506#note_810133183
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20220113/133a15bc/attachment.html>


More information about the Gnutls-devel mailing list