Fix warning in roken test on Windows

This commit is contained in:
Nicolas Williams
2018-12-28 11:46:01 -06:00
committed by Jeffrey Altman
parent 43a911eedc
commit 299fbf5dac

View File

@@ -40,8 +40,8 @@ int
main(void) main(void)
{ {
char buf[MAX_PATH * 2]; char buf[MAX_PATH * 2];
char buf2[MAX_PATH * 2];
#ifndef WIN32 #ifndef WIN32
char buf2[MAX_PATH * 2];
int ret = 0; int ret = 0;
if (!issuid() && getuid() != 0) { if (!issuid() && getuid() != 0) {
if (getenv("USER") != NULL && strlen(getenv("USER")) != 0 && if (getenv("USER") != NULL && strlen(getenv("USER")) != 0 &&