[ovs-dev] [PATCH v2] nsh: Avoid zero-length array.

Ben Pfaff blp at ovn.org
Tue Aug 8 23:14:33 UTC 2017


Thanks for the review.  Applied to master and branch-2.8.

On Tue, Aug 08, 2017 at 11:12:01PM +0000, Alin Serdean wrote:
> Thanks a lot for the patch!
> 
> Acked-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
> 
> 
> > -----Original Message-----
> > From: Ben Pfaff [mailto:blp at ovn.org]
> > Sent: Wednesday, August 9, 2017 2:05 AM
> > To: dev at openvswitch.org
> > Cc: Ben Pfaff <blp at ovn.org>; Alin Serdean
> > <aserdean at cloudbasesolutions.com>
> > Subject: [PATCH v2] nsh: Avoid zero-length array.
> > 
> > MSVC allows [] but not [0] for arrays in struct definitions, and does not allow
> > nested [] inside a union.
> > 
> > Reported-by: Alin Serdean <aserdean at cloudbasesolutions.com>
> > Signed-off-by: Ben Pfaff <blp at ovn.org>
> > ---
> > v1->v2: Avoid [] in nested union also.


More information about the dev mailing list