[gtk-doc] mkdb: fix CheckIsObject return value



commit 6a64e762db543e8a04138dcbb37de4817db95e0a
Author: Stefan Sauer <ensonic users sf net>
Date:   Sat Feb 8 19:33:22 2014 +0100

    mkdb: fix CheckIsObject return value
    
    It needs brackets around the return expression or it doesn't seem to evaluate
    the "$root ne 'GEnum' and $root ne 'GFlags'" bit.
    Spotted by Damon Chaplin
    
    Fixes #706404

 gtkdoc-mkdb.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index f3de08f..8dfeb1d 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -5985,7 +5985,7 @@ sub CheckIsObject {
     my $root = $ObjectRoots{$name};
     # Let GBoxed pass as an object here to get -struct appended to the id
     # and prevent conflicts with sections.
-    return defined($root) and $root ne 'GEnum' and $root ne 'GFlags';
+    return (defined($root) and $root ne 'GEnum' and $root ne 'GFlags');
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]