summaryrefslogtreecommitdiff
path: root/builtin-check-ref-format.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <rene.scharfe@lsrfire.ath.cx>2008-12-21 02:12:11 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-12-21 01:48:23 -0800
commit8f1482536ad680fcd738158e76e254a534f2e690 (patch)
tree2b3b49ebe6e1c9a894b80250c9efcc04c47df5ff /builtin-check-ref-format.c
parentAdd a documentat on how to revert a faulty merge (diff)
downloadtgif-8f1482536ad680fcd738158e76e254a534f2e690.tar.xz
connect.c: stricter port validation, silence compiler warning
In addition to checking if the provided port is numeric, also check that the string isn't empty and that the port number is within the valid range. Incidentally, this silences a compiler warning about ignoring strtol's return value. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-check-ref-format.c')
0 files changed, 0 insertions, 0 deletions