[Bug 79006] [next] Fix clang warnings

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 21 02:00:57 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=79006

Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #99483|0                           |1
           is patch|                            |

--- Comment #10 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> ---
Comment on attachment 99483
  --> https://bugs.freedesktop.org/attachment.cgi?id=99483
base-client: fix potential uninitialized variable bug

>From 6c5f392d9487a94a4fa62c1aaaebdc18794dea9d Mon Sep 17 00:00:00 2001
>From: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
>Date: Wed, 21 May 2014 10:52:49 +0200
>Subject: [PATCH 7/9] base-client: fix potential uninitialized variable bug
>
>https://bugs.freedesktop.org/show_bug.cgi?id=79006
>---
> telepathy-glib/base-client.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/telepathy-glib/base-client.c b/telepathy-glib/base-client.c
>index cb717ca..e9040e2 100644
>--- a/telepathy-glib/base-client.c
>+++ b/telepathy-glib/base-client.c
>@@ -2328,7 +2328,7 @@ _tp_base_client_add_request (TpSvcClientInterfaceRequests *iface,
> {
>   TpBaseClient *self = TP_BASE_CLIENT (iface);
>   TpChannelRequest *request;
>-  TpAccount *account;
>+  TpAccount *account = NULL;
>   GError *error = NULL;
>   channel_request_prepare_account_ctx *ctx;
>   GArray *account_features;
>-- 
>1.9.0
>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list