odr: move 5 members of struct odr to private
[yaz-moved-to-github.git] / src / ber_null.c
index 1fee4c4..5e3cb94 100644 (file)
@@ -33,7 +33,7 @@ int ber_null(ODR o)
             odr_seterror(o, OPROTO, 39);
             return 0;
         }
             odr_seterror(o, OPROTO, 39);
             return 0;
         }
-        if (*(o->bp++) != 0X00)
+        if (*(o->op->bp++) != 0X00)
         {
             odr_seterror(o, OPROTO, 12);
             return 0;
         {
             odr_seterror(o, OPROTO, 12);
             return 0;