Move a assignment to the relevant #ifdef branch
authorMatthias Clasen <mclasen@redhat.com>
Mon, 7 Sep 2009 07:02:58 +0000 (03:02 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 7 Sep 2009 07:02:58 +0000 (03:02 -0400)
Dead code spotted by clang.

gio/gcancellable.c

index e73d384..36973ad 100644 (file)
@@ -510,9 +510,8 @@ g_cancellable_make_pollfd (GCancellable *cancellable, GPollFD *pollfd)
     return FALSE;
   g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), FALSE);
 
-  priv = cancellable->priv;
-
 #ifdef G_OS_WIN32
+  priv = cancellable->priv;
   G_LOCK(cancellable);
   if (priv->event == NULL)
     {