]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix a corner case where automatic APLOGNO number generation generates invalid code...
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 9 Aug 2019 06:49:46 +0000 (06:49 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 9 Aug 2019 06:49:46 +0000 (06:49 +0000)
Not sure why this ,? is there, but it looks uneeded to me.
There is maybe a link with the patterns used in 'find-messages.cocci'. They seem to add some extra , after the empty APLOGNO() it generates.
I will investigate further and fix 'find-messages.cocci' accordingly if needed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864771 13f79535-47bb-0310-9956-ffa450edef68

docs/log-message-tags/update-log-msg-tags

index a034fd49ce2a245c576959b812845cbcb8ec5d7a..21b740bf86b1c66932290f4885166c89424dbe09 100755 (executable)
@@ -37,7 +37,7 @@ sub process
     my $modified;
     my $result = "";
     while (defined $line) {
-        if ($line =~ s{APLOGNO\(\),?}{gen_tag($file)}e) {
+        if ($line =~ s{APLOGNO\(\)}{gen_tag($file)}e) {
             $modified = 1;
         }
         if ($line =~ /APLOGNO\(\s*(\d{5})\s*\)/ ) {