NULL, so buffer always holds the pointer to the allocated space.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: conf.c,v 1.9.4.30 2000/12/01 12:36:36 zarq Exp $
+ $Id: conf.c,v 1.9.4.31 2000/12/01 12:38:42 zarq Exp $
{
int err = -1;
FILE *fp;
{
int err = -1;
FILE *fp;
char *p, *q;
int i, lineno = 0;
config_t *cfg;
char *p, *q;
int i, lineno = 0;
config_t *cfg;
return -1;
bufsize = 100;
return -1;
bufsize = 100;
- line = xmalloc(bufsize);
+ buffer = xmalloc(bufsize);
- if((line = readline(fp, line, &bufsize)) == NULL)
+ if((line = readline(fp, buffer, &bufsize)) == NULL)
fclose (fp);
cp
return err;
fclose (fp);
cp
return err;