summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/ndmpadm/ndmpadm_print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/ndmpadm/ndmpadm_print.c b/usr/src/cmd/ndmpadm/ndmpadm_print.c
index 25458708ef..b9ca186a37 100644
--- a/usr/src/cmd/ndmpadm/ndmpadm_print.c
+++ b/usr/src/cmd/ndmpadm/ndmpadm_print.c
@@ -10,10 +10,10 @@
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
- * - Redistributions of source code must retain the above copyright
+ * - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
- * - Redistributions in binary form must reproduce the above copyright
+ * - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
@@ -104,7 +104,7 @@ ndmp_print_env(ndmp_session_info_t *si)
for (i = 0; ep && i < n; i++, ep++) {
(void) fprintf(stdout, gettext("\tdata.env[%d]:\t%s: "),
i, ep->np_name);
- if ((ep->np_value != NULL) && (*ep->np_value != NULL))
+ if ((ep->np_value != NULL) && (*ep->np_value != '\0'))
(void) fprintf(stdout, "\"%s\"\n", ep->np_value);
}
}