aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-09-18 12:07:04 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-09-18 12:07:04 +0800
commit1e710cd9ea5b40329045e9cb5958f47cf7f79189 (patch)
treee22532c982777a713cad640e642c511ed445f83f /addressbook/gui
parentd8f6b5758f42a6d6028e52198c8075d096f6c629 (diff)
downloadgsoc2013-evolution-1e710cd9ea5b40329045e9cb5958f47cf7f79189.tar.gz
gsoc2013-evolution-1e710cd9ea5b40329045e9cb5958f47cf7f79189.tar.zst
gsoc2013-evolution-1e710cd9ea5b40329045e9cb5958f47cf7f79189.zip
don't malloc a match we will never use.
2001-09-17 Larry Ewing <lewing@ximian.com> * 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
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-completion.c2
1 files changed, 1 insertions, 1 deletions
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 */