Messages in this thread | | | From | Antonio Borneo <> | Date | Thu, 9 May 2019 00:03:32 +0200 | Subject | Re: [PATCH v2] checkpatch: add command-line option for TAB size |
| |
On Wed, May 8, 2019 at 11:14 PM Elliott, Robert (Servers) <elliott@hpe.com> wrote: ... > Checking for 0 before using the value in division and modulo > operations would be prudent.
True! From command line, $tabsize is parsed as integer so I should sort out any non-positive value. Will add a check after GetOptions(...) die "Invalid TAB size: $tabsize\n" if ($tabsize <= 0);
| |