On Fri, Oct 26, 2012 at 05:03:24AM +0200, Alistair Crooks wrote:
>
> /* set up the pubkey keyring */
> int
> pgpv_read_pubring(pgpv_t *pgp, const void *keyring, ssize_t size)
> {
> if (keyring) {
> return (size > 0) ?
> read_binary_memory(pgp, "pubring", keyring,
> (size_t)size) :
> read_binary_file(pgp, "pubring", "%s", keyring);
> }
> return read_binary_file(pgp, "pubring", "%s/%s", getenv("HOME"),
> ".gnupg/pubring.gpg");
> }
What happens if $HOME is undefined ?
What happens if $HOME is very long ?
Why did someone use ?: not if ?
David
--
David Laight: [email protected]