Re: access log



On 08/06/2009 06:06 AM, "J. David Ibáñez" wrote:
>     s_client = (SoupClientContext*) g_value_get_object (++param_values);
>     if (s_client == NULL)
>       printf("s_client is NULL\n");
> 
> This is the output:
> 
>   n_param_values is 3
>   [...]: Warning: g_value_get_object: assertion `G_VALUE_HOLDS_OBJECT
> (value)' failed
>   [...]
>   s_client is NULL

Ah, note the warning; SoupClientContext isn't a GObject, so you can't
use g_value_get_object() to retrieve it. You need g_value_get_boxed().

-- Dan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]