[gtk-doc] scan: fix uninitialized var introduced by refactoring



commit 7a67a692fcdd16221ece54fbddc12392140c5fad
Author: Stefan Kost <ensonic users sf net>
Date:   Sun Jan 3 14:21:07 2010 +0200

    scan: fix uninitialized var introduced by refactoring
    
    Also realign two comments

 gtkdoc-scan.in |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in
index 7f72ab6..2db8a0e 100755
--- a/gtkdoc-scan.in
+++ b/gtkdoc-scan.in
@@ -402,7 +402,7 @@ sub ScanHeader {
 		$in_declaration = "user_function";
 		#print "DEBUG: user function (1): $symbol, Returns: $ret_type\n";
 
-            #              $1                                $3            $4             $5
+            #                                                       $1                                $3            $4             $5
 	    } elsif (($previous_line =~ m/^\s*typedef\s*/) && m/^\s*((const\s+|G_CONST_RETURN\s+)?\w+)(\s+const)?\s*(\**)\s*\(\*\s*(\w+)\)\s*\(/) {
 		my $p3 = defined($3) ? $3 : "";
 		$ret_type = "$1$p3 $4";
@@ -411,9 +411,9 @@ sub ScanHeader {
 		$in_declaration = "user_function";
 		#print "DEBUG: user function (2): $symbol, Returns: $ret_type\n";
 
-            #              $1            $2
+            #                                                       $1            $2
 	    } elsif (($previous_line =~ m/^\s*typedef\s*/) && m/^\s*(\**)\s*\(\*\s*(\w+)\)\s*\(/) {
-		$ret_type = $4;
+		$ret_type = $1;
 		$symbol = $2;
 		$decl = $';
 		#                                     $1                                $3



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