projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug that caused MARC decode to SEGV for some invalid MARC records.
[yaz-moved-to-github.git]
/
test
/
tstodr.c
diff --git
a/test/tstodr.c
b/test/tstodr.c
index
9561e11
..
a0180a6
100644
(file)
--- a/
test/tstodr.c
+++ b/
test/tstodr.c
@@
-1,10
+1,11
@@
/*
/*
- * Copyright (c) 1995-2003, Index Data
+ * Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
* See the file LICENSE for details.
*
- * $Id: tstodr.c,v 1.1 2003-10-27 12:21:38 adam Exp $
+ * $Id: tstodr.c,v 1.4 2005-02-01 17:23:36 adam Exp $
*
*/
*
*/
+#include <stdlib.h>
#include <stdio.h>
#include <yaz/odr.h>
#include "tstodrcodec.h"
#include <stdio.h>
#include <yaz/odr.h>
#include "tstodrcodec.h"
@@
-50,10
+51,7
@@
void tst_MySequence1(ODR encode, ODR decode)
void tst_MySequence2(ODR encode, ODR decode)
{
void tst_MySequence2(ODR encode, ODR decode)
{
- char *ber_buf;
- int ber_len;
Yc_MySequence *s = odr_malloc(encode, sizeof(*s));
Yc_MySequence *s = odr_malloc(encode, sizeof(*s));
- Yc_MySequence *t;
s->first = 0; /* deliberately miss this .. */
s->second = odr_malloc(encode, sizeof(*s->second));
s->first = 0; /* deliberately miss this .. */
s->second = odr_malloc(encode, sizeof(*s->second));