Patched the previous patch. Everything should be OK now both in the case
[pspp-builds.git] / src / set.q
index 89ce0383c665ccffb47f6c01587f2307b10c9f57..620961b59ca46415e50647625aa76feed43ca0b5 100644 (file)
--- a/src/set.q
+++ b/src/set.q
@@ -1106,8 +1106,16 @@ init_settings(void)
   {
     const char *pager = getenv ("STAT_PAGER");
 
-    if (!pager)  
-       set_pager = xstrdup (getenv ("PAGER") );
+    if (!pager) 
+      {
+       const char *p = getenv ("PAGER");
+       
+       if ( p != NULL ) 
+         set_pager = xstrdup (p);
+       else
+         set_pager = 0;
+      }
+    
 
     if (pager)  
       set_pager = xstrdup (pager);