httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sorin Manolache <sor...@gmail.com>
Subject Re: I don't understand apr_array_push
Date Wed, 26 Jan 2011 16:03:53 GMT
> In my opinion the problem is here:
> alias = (alias_t *)&reqc->aliases->elts[k];
>
> Try
>
> alias = ((alias_t *)reqc->aliases->elts)[k];
>

Sorry

alias = &((alias_t *)reqc->aliases->elts)[k];

or equivalently

alias = ((alias_t *)reqc->aliases->elts) + k;

Mime
View raw message