>>> "Christos Zoulas" <[email protected]> wrote
> Module Name: src
> Committed By: christos
> Date: Sun Feb 13 05:39:52 UTC 2011
>
> Modified Files:
> src/crypto/external/bsd/libsaslc/dist/src: mech.c
>
> Log Message:
> Make all mechanisms optional, so we can compile in only the ones we want.
> @@ -100,7 +106,9 @@
> saslc__error_set_errno(ERR(ctx), ERROR_NOMEM);
> return NULL;
> }
> - for (i = 0; saslc__mechanisms[i] != NULL; i++) {
> + for (i = 0; __arraycount(saslc__mechanisms); i++) {
> + if (saslc__mechanisms[i] == NULL)
> + continue;
> if ((node = calloc(1, sizeof(*node))) == NULL)
> goto error;
"i <" is missing?
-- Takeshi Nakayama