diff options
Diffstat (limited to 'Tests/Environment/main.cxx')
-rw-r--r-- | Tests/Environment/main.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Tests/Environment/main.cxx b/Tests/Environment/main.cxx index 2e1bf4c..55bc77f 100644 --- a/Tests/Environment/main.cxx +++ b/Tests/Environment/main.cxx @@ -1,13 +1,12 @@ #include <stdio.h> #include <stdlib.h> -int main(int argc, char *argv[]) +int main(int argc, char* argv[]) { char* var = getenv("CMAKE_ENVIRONMENT_TEST_VAR"); - if (!var) - { + if (!var) { var = "(null)"; - } + } fprintf(stdout, "Environment:\n"); fprintf(stdout, " CMAKE_ENVIRONMENT_TEST_VAR='%s'\n", var); |