pidl: If STR_NULLTERM we concider it's a string as well
authorMatthieu Patou <mat@matws.net>
Fri, 5 Aug 2011 19:03:29 +0000 (23:03 +0400)
committerMatthieu Patou <mat@matws.net>
Fri, 5 Aug 2011 21:33:07 +0000 (01:33 +0400)
pidl/lib/Parse/Pidl/NDR.pm

index d91c324b536ebaf030b56eaded9e5de14eefeadb..db776ae3ef371751806d833b84e4407a74786cc1 100644 (file)
@@ -943,6 +943,9 @@ sub ContainsString($)
 {
        my ($e) = @_;
 
+       if (property_matches($e, "flag", ".*STR_NULLTERM.*")) {
+               return 1;
+       }
        foreach my $l (@{$e->{LEVELS}}) {
                return 1 if ($l->{TYPE} eq "ARRAY" and $l->{IS_ZERO_TERMINATED});
        }