]> git.proxmox.com Git - libgit2.git/commit - src/sysdir.c
git__getenv: utf-8 aware env reader
authorEdward Thomson <ethomson@edwardthomson.com>
Thu, 2 Jul 2015 14:25:48 +0000 (09:25 -0500)
committerEdward Thomson <ethomson@edwardthomson.com>
Thu, 2 Jul 2015 16:35:43 +0000 (16:35 +0000)
commite069c621bdd62e603b048eb536f5a978a905b310
treee3fa76833856f675d8eda911059a254465cfdf75
parentaa92c318a235cc6a5230682b9c071eb35f9c5f4c
git__getenv: utf-8 aware env reader

Introduce `git__getenv` which is a UTF-8 aware `getenv` everywhere.
Make `cl_getenv` use this to keep consistent memory handling around
return values (free everywhere, as opposed to only some platforms).
13 files changed:
src/remote.c
src/sysdir.c
src/util.c
src/util.h
src/win32/posix_w32.c
tests/clar_libgit2.c
tests/clar_libgit2.h
tests/core/env.c
tests/core/ftruncate.c
tests/filter/stream.c
tests/online/clone.c
tests/online/push.c
tests/repo/init.c