aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-messages.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-07 13:12:24 -0500
committerTed Gould <ted@canonical.com>2009-04-07 13:12:24 -0500
commit33aaf28aafac744cde4375df44db4bd1c9a02696 (patch)
treeee280a66ff5ffcaee79aef03e966bb24e67d8d92 /src/indicator-messages.c
parent2a4f8fe40c6eb99b76337a6de86acdae5a861607 (diff)
downloadayatana-indicator-messages-33aaf28aafac744cde4375df44db4bd1c9a02696.tar.gz
ayatana-indicator-messages-33aaf28aafac744cde4375df44db4bd1c9a02696.tar.bz2
ayatana-indicator-messages-33aaf28aafac744cde4375df44db4bd1c9a02696.zip
Making these new0 to make sure that our lists are NULL
Diffstat (limited to 'src/indicator-messages.c')
-rw-r--r--src/indicator-messages.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index bf9cd04..66519f4 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -139,7 +139,7 @@ server_added (IndicateListener * listener, IndicateListenerServer * server, gcha
g_signal_connect(G_OBJECT(menuitem), APP_MENU_ITEM_SIGNAL_COUNT_CHANGED, G_CALLBACK(server_count_changed), NULL);
g_signal_connect(G_OBJECT(menuitem), APP_MENU_ITEM_SIGNAL_NAME_CHANGED, G_CALLBACK(server_name_changed), menushell);
- serverList_t * sl_item = g_new(serverList_t, 1);
+ serverList_t * sl_item = g_new0(serverList_t, 1);
sl_item->server = server;
sl_item->menuitem = menuitem;
sl_item->imList = NULL;
@@ -343,7 +343,7 @@ subtype_cb (IndicateListener * listener, IndicateListenerServer * server, Indica
g_debug("Message subtype: %s", propertydata);
if (!strcmp(propertydata, "im") || !strcmp(propertydata, "login")) {
- imList_t * listItem = g_new(imList_t, 1);
+ imList_t * listItem = g_new0(imList_t, 1);
listItem->server = server;
listItem->indicator = indicator;
@@ -361,7 +361,7 @@ subtype_cb (IndicateListener * listener, IndicateListenerServer * server, Indica
if (serverentry == NULL) {
/* This sucks, we got an indicator before the server. I guess
that's the joy of being asynchronous */
- serverList_t * sl_item = g_new(serverList_t, 1);
+ serverList_t * sl_item = g_new0(serverList_t, 1);
sl_item->server = server;
sl_item->menuitem = NULL;
sl_item->imList = NULL;