From: Sebastian Hammer Date: Fri, 25 May 2007 03:58:04 +0000 (+0000) Subject: took sizeof of the wrong variable.. darnit X-Git-Tag: PAZPAR2.1.0.0~97 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=11a922657ec236f413f7588cc7ee57883d133b78;p=pazpar2-moved-to-github.git took sizeof of the wrong variable.. darnit --- diff --git a/src/database.c b/src/database.c index dafb4bc..dbcbf12 100644 --- a/src/database.c +++ b/src/database.c @@ -1,4 +1,4 @@ -/* $Id: database.c,v 1.27 2007-05-18 19:52:52 quinn Exp $ +/* $Id: database.c,v 1.28 2007-05-25 03:58:04 quinn Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -144,7 +144,7 @@ static struct database *load_database(const char *id) db->settings = nmem_malloc(nmem, sizeof(struct settings*) * settings_num()); memset(db->settings, 0, sizeof(struct settings*) * settings_num()); - idset = nmem_malloc(nmem, sizeof(*id)); + idset = nmem_malloc(nmem, sizeof(*idset)); idset->precedence = 0; idset->name = "pz:id"; idset->target = idset->value = db->url;