Re: [PATCH v2 3/4] real_path: create real_pathdup
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Dec 9, 2016, 14:35 UTC
- Message-ID
- <6deba49f-52f7-7fb5-2f93-24aa411a7710@kdbg.org>
- In-Reply-To
- <1481241494-6861-4-git-send-email-bmwill@google.com>
Am 09.12.2016 um 00:58 schrieb Brandon Williams:
Show 6 quoted lines
> +char *real_pathdup(const char *path)
> +{
> + struct strbuf realpath = STRBUF_INIT;
> + char *retval = NULL;
> +
> + if(strbuf_realpath(&realpath, path, 0))Style nit: blank after if is missing.
-- Hannes