Commit 184121f5 authored by Pekka Pessi's avatar Pekka Pessi

su_tagarg.h: call va_copy() before calling tl_vlist()

Looks like Solaris on amd64 is not happy with normal va_start()/va_end() use
of va_lists.

Thanks for Michael Jerris for reporting the problem.

darcs-hash:20071120113208-88462-825d34b76fc28bdb171d994641eb27f8c85defd5.gz
parent 50d86c2a
......@@ -142,8 +142,11 @@ typedef struct {
if (ta_start__tag != NULL && \
ta_start__tag != tag_null && \
ta_start__tag != tag_next) { \
va_list ta_start__ap; \
va_copy(ta_start__ap, (ta).ap); \
(ta).tl[1].t_tag = tag_next; \
(ta).tl[1].t_value = (tag_value_t)tl_vlist((ta).ap); \
(ta).tl[1].t_value = (tag_value_t)tl_vlist(ta_start__ap); \
va_end(ta_start__ap); \
} else { \
(ta).tl[1].t_value = 0; (ta).tl[1].t_value = (tag_value_t)0; \
} \
......
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