X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Frecord.c;h=c43af421a71b846f0da15be3b9e611424aa735e0;hb=6ff7cb53029747ad6ac60fde903630ea063b5218;hp=b1446ceb8ac4dc901ebf82698c42c7a4793abea5;hpb=18701a2fcad5171b03a76ceda18702831eb90850;p=pazpar2-moved-to-github.git diff --git a/src/record.c b/src/record.c index b1446ce..c43af42 100644 --- a/src/record.c +++ b/src/record.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2008 Index Data + Copyright (C) 2006-2011 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -26,12 +26,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #endif -//#define CONFIG_NOEXTERNS #include "pazpar2_config.h" #include "record.h" - - union data_types * data_types_assign(NMEM nmem, union data_types ** data1, union data_types data2) @@ -88,6 +85,7 @@ struct record_metadata * record_metadata_create(NMEM nmem) struct record_metadata * rec_md = nmem_malloc(nmem, sizeof(struct record_metadata)); rec_md->next = 0; + rec_md->attributes = 0; return rec_md; } @@ -187,7 +185,9 @@ union data_types * record_assign_sortkey(NMEM nmem, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +