Re: ober_scanf_elements() and empty sequences

2023-08-22 Thread Gerhard Roth
On Tue, 2023-08-22 at 13:27 +0200, Martijn van Duren wrote: > On Tue, 2023-08-22 at 10:16 +, Gerhard Roth wrote: > > On Tue, 2023-08-22 at 11:16 +0200, Martijn van Duren wrote: > > > On Mon, 2023-08-21 at 07:35 +, Gerhard Roth wrote: > > > > Hi Martijn, > > > > > > > > last November you

Re: ober_scanf_elements() and empty sequences

2023-08-22 Thread Martijn van Duren
On Tue, 2023-08-22 at 10:16 +, Gerhard Roth wrote: > On Tue, 2023-08-22 at 11:16 +0200, Martijn van Duren wrote: > > On Mon, 2023-08-21 at 07:35 +, Gerhard Roth wrote: > > > Hi Martijn, > > > > > > last November you fixed ber.c so that sequences won't generate > > > an uninitialized

Re: ober_scanf_elements() and empty sequences

2023-08-22 Thread Gerhard Roth
On Tue, 2023-08-22 at 11:16 +0200, Martijn van Duren wrote: > On Mon, 2023-08-21 at 07:35 +, Gerhard Roth wrote: > > Hi Martijn, > > > > last November you fixed ber.c so that sequences won't generate > > an uninitialized subelement. > > > > This revealed another bug in ober_scanf_elements():

Re: ober_scanf_elements() and empty sequences

2023-08-22 Thread Martijn van Duren
On Mon, 2023-08-21 at 07:35 +, Gerhard Roth wrote: > Hi Martijn, > > last November you fixed ber.c so that sequences won't generate > an uninitialized subelement. > > This revealed another bug in ober_scanf_elements(): it couldn't > process sequences with an empty list of subelements. The

ober_scanf_elements() and empty sequences

2023-08-21 Thread Gerhard Roth
Hi Martijn, last November you fixed ber.c so that sequences won't generate an uninitialized subelement. This revealed another bug in ober_scanf_elements(): it couldn't process sequences with an empty list of subelements. The following code failed in ober_scanf_elements(): struct