[grilo-plugins] dleyna: Fix crash determining local IPv6 address



commit e382c86ef4be39cb241a86c83d4c175af329c198
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Mon Nov 17 09:18:16 2014 +0100

    dleyna: Fix crash determining local IPv6 address
    
    Avoid a crash when determining the local IPv6 address due to a shadowed
    variable.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740052

 src/dleyna/grl-dleyna-utils.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/dleyna/grl-dleyna-utils.c b/src/dleyna/grl-dleyna-utils.c
index aa8b1bd..51b88e5 100644
--- a/src/dleyna/grl-dleyna-utils.c
+++ b/src/dleyna/grl-dleyna-utils.c
@@ -213,7 +213,6 @@ is_our_user_ipv6 (struct sockaddr_in6 *address)
 
   status = g_io_channel_read_line (file, &line, NULL, NULL, NULL);
   while (status == G_IO_STATUS_NORMAL) {
-    char *line;
     int j, k, l;
     /* 4*8 for IP, 4 for port, 1 for :, 1 for NUL */
     char buffer[4*8 + 4 + 1 + 1];


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