URI: 
       do not allow an empty port field - gopher-validator - Simple gopher menu validator.
  HTML git clone git://bitreich.org/gopher-validator git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-validator
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
   DIR LICENSE
       ---
   DIR commit 8a541d4834b40fdd55fe0263e19c7c15a748fd57
   DIR parent a230aa92f5f19ff3160fd7cdc7acc2810a02839a
  HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Fri, 18 Feb 2022 14:29:12 +0100
       
       do not allow an empty port field
       
       Diffstat:
         M gopher-validator.c                  |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/gopher-validator.c b/gopher-validator.c
       @@ -366,7 +366,7 @@ checkdir(FILE *fp)
        
                        errno = 0;
                        l = strtoll(v.port, &end, 10);
       -                if (errno || *end || l < 0 || l > 65535) {
       +                if (errno || v.port == end || *end || l < 0 || l > 65535) {
                                error("%zu: invalid port: %s\n", linenr, v.port);
                        } else {
        #if 0