[seahorse] Properly null terminate the string array returned for DNS-SD
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] Properly null terminate the string array returned for DNS-SD
- Date: Sun, 18 Sep 2011 09:08:52 +0000 (UTC)
commit a05ff87f2f1f6e23dc7eb70ef915e2c2b5517f0d
Author: Stef Walter <stefw collabora co uk>
Date: Sun Sep 18 11:07:15 2011 +0200
Properly null terminate the string array returned for DNS-SD
libseahorse/seahorse-dns-sd.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libseahorse/seahorse-dns-sd.c b/libseahorse/seahorse-dns-sd.c
index 19b3df5..1c70d34 100644
--- a/libseahorse/seahorse-dns-sd.c
+++ b/libseahorse/seahorse-dns-sd.c
@@ -414,6 +414,7 @@ seahorse_service_discovery_list (SeahorseServiceDiscovery *ssd)
while (g_hash_table_iter_next (&iter, &key, NULL))
g_ptr_array_add (result, g_strdup (key));
+ g_ptr_array_add (result, NULL);
return (gchar **)g_ptr_array_free (result, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]