$NetBSD: patch-aa,v 1.3 2005/05/31 21:33:11 kristerw Exp $ --- src/post.c.orig Tue May 31 23:11:08 2005 +++ src/post.c Tue May 31 23:12:30 2005 @@ -81,6 +81,7 @@ const xine_post_in_t *in = xine_post_input (plugin, "parameters"); const xine_post_api_t *api; const xine_post_api_descr_t *param_desc; + char *params; if (!in) return NULL; @@ -88,7 +89,7 @@ api = in->data; param_desc = api->get_param_descr (); - char *params = malloc (param_desc->struct_size); + params = malloc (param_desc->struct_size); api->get_parameters (plugin, params); for (;;) @@ -494,9 +495,10 @@ while ((++param)->type != POST_PARAM_TYPE_LAST) { GtkWidget *widget; + gpointer param_p; info->conf_w = realloc (info->conf_w, (param_count + 2) * sizeof (GtkWidget *)); - gpointer param_p = info->params + param->offset; + param_p = info->params + param->offset; switch (param->type) { case POST_PARAM_TYPE_INT: