diff mbox series

c++: Fix typo in module-mapper [PR 98318]

Message ID d6bdf385-e997-9c85-206b-08d001c0640b@acm.org
State New
Headers show
Series c++: Fix typo in module-mapper [PR 98318] | expand

Commit Message

Nathan Sidwell Feb. 25, 2021, 1 p.m. UTC
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.
diff mbox series

Patch

diff --git c/gcc/cp/mapper-client.cc w/gcc/cp/mapper-client.cc
index a72b4b70664..774e2b2b095 100644
--- c/gcc/cp/mapper-client.cc
+++ w/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