Re: HM_DISCARD_DUP_MSGIDS

---------

From: Zvi Har'El (rl@math.technion.ac.il)
Date: Sun Jun 24 2001 - 14:25:57 CDT


Dear Scott,

Thanks, that really did it. As you suggested, I switched to a dynamically
generated configuration file, and it works ok with integer valued configuration
variables.

Best,

Zvi.

On Sun, 24 Jun 2001, Scott Rose wrote:

> As far as I can see, this is broken and has been broken since at least
> late betas of 2.0. The environment variables are read in a function
> called setup.c:PreConfig(). That function doesn't handle integers in
> environment variables properly- setting any value in the envar will
> cause the address of the string to be stored instead of the value of the
> integer being scanned out of the string:
>
> defval = getenv(name);
> ...
> switch (cfg[i].flags) {
> ...
> case CFG_INTEGER:
> *(int *)cfg[i].value = (int)defval;
> break;
>
> Seems like a sscanf() is indicated here. I think your choices are to
> hack the code or, more simply, to use a config file.
>
>
>

-- 
Dr. Zvi Har'El     mailto:rl@math.technion.ac.il     Department of Mathematics
tel:+972-54-227607                   Technion - Israel Institute of Technology
fax:+972-4-8324654 http://www.math.technion.ac.il/~rl/     Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)
                                  Sunday, 4 Tammuz 5761, 24 June 2001, 10:24PM

---------

This archive was generated by hypermail 2.1.5.