mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +01:00
gio/gthreadedresolver.c: Fix non-UNIX build
Move the GError *error declaration up, as that variable is also used for non-Unix builds.
This commit is contained in:
parent
8a530463ad
commit
2b17e797a4
@ -204,12 +204,12 @@ do_lookup_records (GTask *task,
|
|||||||
{
|
{
|
||||||
LookupRecordsData *lrd = task_data;
|
LookupRecordsData *lrd = task_data;
|
||||||
GList *targets;
|
GList *targets;
|
||||||
|
GError *error = NULL;
|
||||||
#if defined(G_OS_UNIX)
|
#if defined(G_OS_UNIX)
|
||||||
gint len = 512;
|
gint len = 512;
|
||||||
gint herr;
|
gint herr;
|
||||||
GByteArray *answer;
|
GByteArray *answer;
|
||||||
gint rrtype;
|
gint rrtype;
|
||||||
GError *error = NULL;
|
|
||||||
|
|
||||||
rrtype = _g_resolver_record_type_to_rrtype (lrd->record_type);
|
rrtype = _g_resolver_record_type_to_rrtype (lrd->record_type);
|
||||||
answer = g_byte_array_new ();
|
answer = g_byte_array_new ();
|
||||||
|
Loading…
Reference in New Issue
Block a user