From 1e710cd9ea5b40329045e9cb5958f47cf7f79189 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Tue, 18 Sep 2001 04:07:04 +0000 Subject: don't malloc a match we will never use. 2001-09-17 Larry Ewing * gui/component/select-names/e-select-names-completion.c (match_nickname): don't malloc a match we will never use. svn path=/trunk/; revision=12935 --- addressbook/gui/component/select-names/e-select-names-completion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/gui/component') diff --git a/addressbook/gui/component/select-names/e-select-names-completion.c b/addressbook/gui/component/select-names/e-select-names-completion.c index ff31e1d42e..8472ffc4d6 100644 --- a/addressbook/gui/component/select-names/e-select-names-completion.c +++ b/addressbook/gui/component/select-names/e-select-names-completion.c @@ -143,7 +143,7 @@ match_nickname (ESelectNamesCompletion *comp, EDestination *dest) if (card->nickname && !g_utf8_strncasecmp (comp->priv->query_text, card->nickname, len)) { - ECompletionMatch *match = g_new0 (ECompletionMatch, 1); + ECompletionMatch *match; gchar *str; score = len * 10; /* nickname gives 10 points per matching character */ -- cgit v1.2.3