Re: [PATCH v3/GSoC 2/5] path.c: implement xdg_runtime_dir()
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 28, 2016, 17:03 UTC
- Message-ID
- <xmqqd1qezga6.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAKqreuxJ7Rz2G_hmnAOH7W4rBBKr=CX3pjbzJkkK1ZhN=3_o-w@mail.gmail.com>
惠轶群 <huiyiqun@gmail.com> writes:
Show 11 quoted lines
> For example:
>
> const char *enter_repo(const char *path, int strict)
> {
> static struct strbuf validated_path = STRBUF_INIT;
> static struct strbuf used_path = STRBUF_INIT;
>
> if (!path)
> return NULL; // no need to release, right?
> ...
> }Correct.