projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c591b6b
)
Modified odr_destroy so that file is not closed when file is 0.
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 27 Apr 1999 08:34:10 +0000
(08:34 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 27 Apr 1999 08:34:10 +0000
(08:34 +0000)
odr/odr.c
patch
|
blob
|
history
diff --git
a/odr/odr.c
b/odr/odr.c
index
785a04b
..
5560934
100644
(file)
--- a/
odr/odr.c
+++ b/
odr/odr.c
@@
-1,10
+1,13
@@
/*
/*
- * Copyright (c) 1995-1998, Index Data
+ * Copyright (c) 1995-1999, Index Data
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr.c,v $
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr.c,v $
- * Revision 1.28 1998-07-20 12:38:13 adam
+ * Revision 1.29 1999-04-27 08:34:10 adam
+ * Modified odr_destroy so that file is not closed when file is 0.
+ *
+ * Revision 1.28 1998/07/20 12:38:13 adam
* More LOG_DEBUG-diagnostics.
*
* Revision 1.27 1998/02/11 11:53:34 adam
* More LOG_DEBUG-diagnostics.
*
* Revision 1.27 1998/02/11 11:53:34 adam
@@
-192,7
+195,7
@@
void odr_destroy(ODR o)
nmem_destroy(o->mem);
if (o->ecb.buf && o->ecb.can_grow)
xfree(o->ecb.buf);
nmem_destroy(o->mem);
if (o->ecb.buf && o->ecb.can_grow)
xfree(o->ecb.buf);
- if (o->print != stderr)
+ if (o->print && o->print != stderr)
fclose(o->print);
xfree(o);
logf (LOG_DEBUG, "odr_destroy o=%p", o);
fclose(o->print);
xfree(o);
logf (LOG_DEBUG, "odr_destroy o=%p", o);