summaryrefslogtreecommitdiffstats
path: root/tools/regression/environ/envctl.c
diff options
context:
space:
mode:
authorscf <scf@FreeBSD.org>2008-04-23 00:45:48 +0000
committerscf <scf@FreeBSD.org>2008-04-23 00:45:48 +0000
commite3c15650b08e098db24738aa1cd64372ffcb7d45 (patch)
tree927961012ab3927bb03e75245d7290cfadc10bca /tools/regression/environ/envctl.c
parent8d647da1edcc4aad93660da8a41dc09f628eb53c (diff)
downloadFreeBSD-src-e3c15650b08e098db24738aa1cd64372ffcb7d45.zip
FreeBSD-src-e3c15650b08e098db24738aa1cd64372ffcb7d45.tar.gz
Differentiate in the tests against getenv() between an empty string and a
NULL by having the test program return *NULL* for NULL's (no existing variable) instead of an empty string (variable with empty value).
Diffstat (limited to 'tools/regression/environ/envctl.c')
-rw-r--r--tools/regression/environ/envctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/regression/environ/envctl.c b/tools/regression/environ/envctl.c
index a63270d..c433fa0 100644
--- a/tools/regression/environ/envctl.c
+++ b/tools/regression/environ/envctl.c
@@ -126,7 +126,7 @@ main(int argc, char **argv)
case 'G':
case 'g':
value = getenv(arg == 'g' ? optarg : NULL);
- printf("%s%s", value == NULL ? "" : value, eol);
+ printf("%s%s", value == NULL ? "*NULL*" : value, eol);
break;
case 'p':
OpenPOWER on IntegriCloud