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
*** empty log message ***
[yaz-moved-to-github.git]
/
odr
/
odr_bool.c
diff --git
a/odr/odr_bool.c
b/odr/odr_bool.c
index
e16bf52
..
bc21834
100644
(file)
--- a/
odr/odr_bool.c
+++ b/
odr/odr_bool.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_bool.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_bool.c,v $
- * Revision 1.1 1995-02-02 16:21:53 quinn
+ * Revision 1.2 1995-02-09 15:51:47 quinn
+ * Works better now.
+ *
+ * Revision 1.1 1995/02/02 16:21:53 quinn
* First kick.
*
*/
* First kick.
*
*/
@@
-25,6
+28,8
@@
int odr_bool(ODR o, int **p, int opt)
o->t_class = ODR_UNIVERSAL;
o->t_tag = ODR_BOOLEAN;
}
o->t_class = ODR_UNIVERSAL;
o->t_tag = ODR_BOOLEAN;
}
+ if (o->direction == ODR_DECODE)
+ *p = 0;
if ((res = ber_tag(o, *p, o->t_class, o->t_tag, &cons)) < 0)
return 0;
if (!res)
if ((res = ber_tag(o, *p, o->t_class, o->t_tag, &cons)) < 0)
return 0;
if (!res)