Previous 15994 Revisions Next

r780 Thursday 2nd August, 2007 at 12:07:02 UTC by Nathan Woods
Options code fixes; MESSGUI works again
[src/lib/util]options.c

src/lib/util/options.c
r779r780
828828
829829const char *options_enumerator_next(options_enumerator *enumerator)
830830{
831   const char *option_name = NULL;
831   astring *option_name = NULL;
832832
833833   /* be sure to skip over false options */
834834   while (option_name == NULL && enumerator->current != NULL)
835835   {
836836      /* retrieve the current option name and advance the enumerator */
837      option_name = astring_c(enumerator->current->links[0].name);
837      option_name = enumerator->current->links[0].name;
838838      enumerator->current = enumerator->current->next;
839839   }
840   return option_name;
840   return (option_name != NULL) ? astring_c(option_name) : NULL;
841841}
842842
843843

Previous 15994 Revisions Next


© 1998-2018 The MESS Team