Fix regression, if sport is never set. - geomyidae - A small C-based gopherd.
HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit dd5de127a721468b97bc4b7741cdb76f17812b8a
DIR parent 209e54941ded32433e03070038ef8b0a6c2ed214
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 1 Sep 2018 14:20:50 +0200
Fix regression, if sport is never set.
Thanks Evil_Bob for reporting!
Diffstat:
M main.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
DIR diff --git a/main.c b/main.c
@@ -444,6 +444,9 @@ main(int argc, char *argv[])
usage();
} ARGEND;
+ if (sport == NULL)
+ sport = port;
+
if (argc != 0)
usage();