about summary refs log tree commit diff stats
path: root/src/LYNews.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2002-10-07 01:07:23 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2002-10-07 01:07:23 -0400
commit0cb11571ef3a2820a888b47eaa0ea3083e3b9b0f (patch)
tree1e65bf4510e41320b9428058bb20f3f6d6fdd648 /src/LYNews.c
parentffc5ca31a759c93f4cb2af8aec4fe6e852161855 (diff)
downloadlynx-snapshots-0cb11571ef3a2820a888b47eaa0ea3083e3b9b0f.tar.gz
snapshot of project "lynx", label v2-8-5dev_9
Diffstat (limited to 'src/LYNews.c')
-rw-r--r--src/LYNews.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/LYNews.c b/src/LYNews.c
index 01d2e41f..7d611170 100644
--- a/src/LYNews.c
+++ b/src/LYNews.c
@@ -195,7 +195,7 @@ PUBLIC char *LYNewsPost ARGS2(
      */
     LYaddstr(gettext("\n\n Please provide your mail address for the From: header\n"));
     sprintf(user_input, "From: %.*s", (int)sizeof(user_input) - 8,
-	    (personal_mail_address != NULL) ? personal_mail_address : "");
+	    NonNull(personal_mail_address));
     if (LYgetstr(user_input, VISIBLE,
 		 sizeof(user_input), NORECALL) < 0 ||
 	term_message) {
@@ -257,10 +257,9 @@ PUBLIC char *LYNewsPost ARGS2(
      *  Add Organization: header.
      */
     StrAllocCopy(cp, "Organization: ");
-    if (((org = getenv("ORGANIZATION")) != NULL) && *org != '\0') {
+    if ((org = LYGetEnv("ORGANIZATION")) != NULL) {
 	StrAllocCat(cp, org);
-    } else if (((org = getenv("NEWS_ORGANIZATION")) != NULL) &&
-	       *org != '\0') {
+    } else if ((org = LYGetEnv("NEWS_ORGANIZATION")) != NULL) {
 	StrAllocCat(cp, org);
     }
 #ifdef UNIX