]> granicus.if.org Git - zfs/blobdiff - scripts/cstyle.pl
Fix function call with uninitialized value in vdev_inuse
[zfs] / scripts / cstyle.pl
index 9f67b1d2e4d59df2dc1e8874c4623d888d1f97a7..083b30f6e8e9620eefa060749033fb04348d232b 100755 (executable)
@@ -441,8 +441,8 @@ line: while (<$filehandle>) {
 
        # check for errors that might occur in comments and in code.
 
-       # allow spaces to be used to draw pictures in header comments.
-       if (/[^ ]     / && !/".*     .*"/ && !$in_header_comment) {
+       # allow spaces to be used to draw pictures in all comments.
+       if (/[^ ]     / && !/".*     .*"/ && !$in_comment) {
                err("spaces instead of tabs");
        }
        if (/^ / && !/^ \*[ \t\/]/ && !/^ \*$/ &&