[PATCH v4 04/16] Provide _notmuch_crypto_{set,get}_gpg_path

David Bremner david at tethera.net
Fri Aug 12 01:04:20 PDT 2016


Daniel Kahn Gillmor <dkg at fifthhorseman.net> writes:


> +notmuch_status_t
> +_notmuch_crypto_set_gpg_path (_notmuch_crypto_t *crypto, const char *gpg_path)
> +{
[snip]
> +    if (! gpg_path && ! test_for_executable (gpg_path))
> +	return NOTMUCH_STATUS_FILE_ERROR;

this looks strange. Maybe the "!" in front of gpg_path might be
spurious. Or maybe you mean || ?

> -    const char *gpgpath;
> +    char *gpg_path;
>  } _notmuch_crypto_t;

Why is const dropped here?
>  


More information about the notmuch mailing list