Re: empty string variables

2015-10-05 Thread Ian Zimmerman
On 2015-10-05 11:39 -0500, Derek Martin wrote: > > I am trying to add a feature dependent on a new string option (call > > it opt_foo), and I contrived to do different things when the C > > variable corresponding to the option is NULL, vs. when it points to > > the empty string. But when I run my

Re: empty string variables

2015-10-05 Thread Derek Martin
On Sun, Oct 04, 2015 at 07:38:14PM -0700, Ian Zimmerman wrote: > Hi. For variables of type string, is there any difference between empty > and unset? Yes, though what the difference actually is probably depends a lot on what the variable is and how it's used. For example, if you set hostname="

empty string variables

2015-10-04 Thread Ian Zimmerman
Hi. For variables of type string, is there any difference between empty and unset? I am trying to add a feature dependent on a new string option (call it opt_foo), and I contrived to do different things when the C variable corresponding to the option is NULL, vs. when it points to the empty strin