Does this make sense: - Mailing list pgsql-hackers

From The Hermit Hacker
Subject Does this make sense:
Date
Msg-id Pine.BSF.4.05.9812140220060.6029-100000@thelab.hub.org
Whole thread Raw
Responses Re: [HACKERS] Does this make sense:
Re: [HACKERS] Does this make sense:
List pgsql-hackers
char *  
crypt_getpwdfilename()
{     static char *pfnam = NULL;  if (!pfnam) {    int bufsize;   bufsize = strlen(DataDir) + strlen(CRYPT_PWD_FILE) +
2;  pfnam = (char *) palloc(bufsize);    spprintf(pfnam, bufsize, "%s/%s", DataDir, CRYPT_PWD_FILE); }  return pfnam;
 
}

Why the check for '!ipfnam'?  Seems useless since we are setting it to
NULL the line before...no?

Marc G. Fournier                                
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 



pgsql-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] problem compiling with egcs 1.1.1
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] catalog/heap.c...