[grilo] net: Do guard check after variable declaration
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] net: Do guard check after variable declaration
- Date: Wed, 7 May 2014 16:11:33 +0000 (UTC)
commit 1a4261204e293b9832f048dd9b4df24ba8390bfb
Author: Bastien Nocera <hadess hadess net>
Date: Wed May 7 18:10:45 2014 +0200
net: Do guard check after variable declaration
C89.
libs/net/grl-net-wc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libs/net/grl-net-wc.c b/libs/net/grl-net-wc.c
index bb49590..a126d63 100644
--- a/libs/net/grl-net-wc.c
+++ b/libs/net/grl-net-wc.c
@@ -1122,11 +1122,11 @@ grl_net_wc_set_cache_size (GrlNetWc *self,
void
grl_net_wc_flush_delayed_requests (GrlNetWc *self)
{
- g_return_if_fail (GRL_IS_NET_WC (self));
-
GrlNetWcPrivate *priv = self->priv;
struct request_clos *c;
+ g_return_if_fail (GRL_IS_NET_WC (self));
+
while ((c = g_queue_pop_head (priv->pending))) {
g_source_remove (c->source_id);
g_object_unref (c->cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]