Does this make sense:

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Does this make sense:
Date: 1998-12-14 06:21:07
Message-ID: Pine.BSF.4.05.9812140220060.6029-100000@thelab.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1998-12-14 06:22:11 Re: [HACKERS] catalog/heap.c...
Previous Message Thomas G. Lockhart 1998-12-14 05:35:32 Re: [HACKERS] problem compiling with egcs 1.1.1