aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-02-06 11:34:49 +0800
committerChris Toshok <toshok@src.gnome.org>2001-02-06 11:34:49 +0800
commitf620b13aac23d7eaa873ab9c4d5559d40474b686 (patch)
tree60ac954cb11e9f99a8e9daf2da13be23c45cb23c /addressbook/backend
parent4e239b49aec1a2f11b2bbc3af383f3ef78706de3 (diff)
downloadgsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar
gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar.gz
gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar.bz2
gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar.lz
gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar.xz
gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar.zst
gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.zip
err, allocate 2 char*s when i assign 2 char*s.
2001-02-05 Chris Toshok <toshok@ximian.com> * backend/pas/pas-backend-ldap.c (create_card_handler): err, allocate 2 char*s when i assign 2 char*s. svn path=/trunk/; revision=8010
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index a3b5ec04cd..f41f85926d 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -562,7 +562,7 @@ create_card_handler (PASBackend *backend, LDAPOp *op)
objectclass_mod = g_new (LDAPMod, 1);
objectclass_mod->mod_op = LDAP_MOD_ADD;
objectclass_mod->mod_type = g_strdup ("objectClass");
- objectclass_mod->mod_values = g_new (char*, 1);
+ objectclass_mod->mod_values = g_new (char*, 2);
objectclass_mod->mod_values[0] = g_strdup (OBJECT_CLASS);
objectclass_mod->mod_values[1] = NULL;
g_ptr_array_add (mod_array, objectclass_mod);