[BACK]Return to temp.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mail

Diff for /src/usr.bin/mail/temp.c between version 1.9 and 1.10

version 1.9, 1997/07/24 17:27:13 version 1.10, 1997/11/14 00:23:59
Line 56 
Line 56 
 void  void
 tinit()  tinit()
 {  {
         register char *cp;          char *cp;
   
         if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')          if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
                 tmpdir = _PATH_TMP;                  tmpdir = _PATH_TMP;
         if ((tmpdir = strdup(tmpdir)) == NULL)          if ((tmpdir = strdup(tmpdir)) == NULL)
                 panic("Out of memory");                  errx(1, "Out of memory");
   
         /* Strip trailing '/' if necesary */          /* Strip trailing '/' if necesary */
         cp = tmpdir + strlen(tmpdir) - 1;          cp = tmpdir + strlen(tmpdir) - 1;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10