X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ccl%2Fcclqual.c;h=2230b77f1ea35b4fd1b2042e752693dea4d1cb6e;hb=d3984fc00ab8ab6d26fbcb162723667e8bae95c1;hp=3c0a6de98d0f8c426015df9e3178db2399a95a4a;hpb=63cafe41a93427118959a74201b3e331169a71d9;p=yaz-moved-to-github.git diff --git a/ccl/cclqual.c b/ccl/cclqual.c index 3c0a6de..2230b77 100644 --- a/ccl/cclqual.c +++ b/ccl/cclqual.c @@ -2,7 +2,10 @@ * Europagate, 1995 * * $Log: cclqual.c,v $ - * Revision 1.3 1995-09-29 17:12:00 quinn + * Revision 1.4 1995-11-01 13:54:21 quinn + * Minor adjustments + * + * Revision 1.3 1995/09/29 17:12:00 quinn * Smallish * * Revision 1.2 1995/09/27 15:02:44 quinn @@ -52,13 +55,13 @@ void ccl_qual_add (CCL_bibset b, const char *name, int no, int *pairs) break; if (!q) { - struct ccl_qualifier *new_qual = malloc (sizeof(*new_qual)); + struct ccl_qualifier *new_qual = xmalloc (sizeof(*new_qual)); assert (new_qual); new_qual->next = b->list; b->list = new_qual; - new_qual->name = malloc (strlen(name)+1); + new_qual->name = xmalloc (strlen(name)+1); assert (new_qual->name); strcpy (new_qual->name, name); attrp = &new_qual->attr_list; @@ -73,7 +76,7 @@ void ccl_qual_add (CCL_bibset b, const char *name, int no, int *pairs) { struct ccl_rpn_attr *attr; - attr = malloc (sizeof(*attr)); + attr = xmalloc (sizeof(*attr)); assert (attr); attr->type = *pairs++; attr->value = *pairs++; @@ -85,7 +88,7 @@ void ccl_qual_add (CCL_bibset b, const char *name, int no, int *pairs) CCL_bibset ccl_qual_mk (void) { - CCL_bibset b = malloc (sizeof(*b)); + CCL_bibset b = xmalloc (sizeof(*b)); assert (b); b->list = NULL; return b;