Commit b68565fd authored by Pekka Pessi's avatar Pekka Pessi

soa_get_paramlist() just returns NULL if given NULL session.

darcs-hash:20050928194613-65a35-8a93e8a89f533bf9dab73909df16c4029276ee5d.gz
parent 3c603465
......@@ -499,18 +499,16 @@ int soa_base_get_params(soa_session_t const *ss, tagi_t *tags)
tagi_t *soa_get_paramlist(soa_session_t const *ss,
tag_type_t tag, tag_value_t value, ...)
{
if (ss) {
ta_list ta;
tagi_t *params;
ta_list ta;
tagi_t *params = NULL;
if (ss) {
ta_start(ta, tag, value);
params = ss->ss_actions->soa_get_paramlist(ss, ta_tags(ta));
ta_end(ta);
return params;
}
return (void)(errno = EFAULT), NULL;
return params;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment