mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 13:04:42 +00:00
Merge pull request #732 from schu/fix-gcc-nonnull
tests-clar/core: fix non-null warning
This commit is contained in:
commit
539e6c138e
@ -48,8 +48,11 @@ static int cl_setenv(const char *name, const char *value)
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#define cl_getenv(n) getenv(n)
|
#define cl_getenv(n) getenv(n)
|
||||||
#define cl_setenv(n,v) (v) ? setenv((n),(v),1) : unsetenv(n)
|
|
||||||
|
|
||||||
|
static int cl_setenv(const char *name, const char *value)
|
||||||
|
{
|
||||||
|
return (value == NULL) ? unsetenv(name) : setenv(name, value, 1);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GIT_WIN32
|
#ifdef GIT_WIN32
|
||||||
|
Loading…
Reference in New Issue
Block a user