Commit 539e6c13 by Vicent Martí

Merge pull request #732 from schu/fix-gcc-nonnull

tests-clar/core: fix non-null warning
parents 29ef309e dbab0459
......@@ -48,8 +48,11 @@ static int cl_setenv(const char *name, const char *value)
#include <stdlib.h>
#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
#ifdef GIT_WIN32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment