From: Junio C Hamano Date: Mon, 28 Mar 2016 17:03:13 GMT Subject: Re: [PATCH v3/GSoC 2/5] path.c: implement xdg_runtime_dir() Message-ID: In-Reply-To: 惠轶群 writes: > 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.