aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2021-02-25 04:57:09 -0800
committerNathan Sidwell <nathan@acm.org>2021-02-25 05:00:09 -0800
commit2bf9e68a9589f9d3ace3663a17ff923191144c3b (patch)
tree43070543a1882d21f669e9fef14748d46405f2ff /gcc
parent75c74a83acee3f51e6753b8159fa600fe2d86810 (diff)
downloadgcc-2bf9e68a9589f9d3ace3663a17ff923191144c3b.zip
gcc-2bf9e68a9589f9d3ace3663a17ff923191144c3b.tar.gz
gcc-2bf9e68a9589f9d3ace3663a17ff923191144c3b.tar.bz2
c++: Fix typo in module-mapper [PR 98318]
User reported this typo: '0' and '-' are right next to each other, and as it happened I always had networking, so it went unnoticed. PR c++/98318 gcc/cp/ * mapper-client.cc (module_client::open_module_client): Fix typo of fd init.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/mapper-client.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/mapper-client.cc b/gcc/cp/mapper-client.cc
index a72b4b7..774e2b2 100644
--- a/gcc/cp/mapper-client.cc
+++ b/gcc/cp/mapper-client.cc
@@ -249,7 +249,7 @@ module_client::open_module_client (location_t loc, const char *o,
if (port && endp != cptr + 1 && !*endp)
{
name[colon] = 0;
- int fd = 01;
+ int fd = -1;
#if CODY_NETWORKING
fd = Cody::OpenInet6 (&errmsg, name.c_str (), port);
#endif