summaryrefslogtreecommitdiff
path: root/fsck.h
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2008-12-21 01:12:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-12-21 09:48:23 (GMT)
commit8f1482536ad680fcd738158e76e254a534f2e690 (patch)
tree2b3b49ebe6e1c9a894b80250c9efcc04c47df5ff /fsck.h
parenta128a2cdc35cdf0eff7eeb1c21b912209f133633 (diff)
downloadgit-8f1482536ad680fcd738158e76e254a534f2e690.zip
git-8f1482536ad680fcd738158e76e254a534f2e690.tar.gz
git-8f1482536ad680fcd738158e76e254a534f2e690.tar.bz2
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 'fsck.h')
0 files changed, 0 insertions, 0 deletions