File: avoid-gcc-crash.patch

package info (click to toggle)
ncbi-igblast 1.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 118,088 kB
  • sloc: cpp: 950,524; ansic: 300,100; sh: 14,350; xml: 4,881; javascript: 3,442; python: 2,644; perl: 2,518; java: 2,284; makefile: 1,132; yacc: 416; awk: 162; pascal: 114
file content (18 lines) | stat: -rw-r--r-- 781 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Index: b/c++/src/connect/ncbi_socket.c
===================================================================
--- a/c++/src/connect/ncbi_socket.c
+++ b/c++/src/connect/ncbi_socket.c
@@ -6037,11 +6037,12 @@ static EIO_Status s_SendMsg(SOCK
 
     if (!x_host  ||  !x_port) {
         SOCK_HostPortToString(x_host, x_port, w, sizeof(w)/2);
+        const char* missing = x_port ? "host" : &"host:port"[x_host ? 5 : 0];
         CORE_LOGF_X(89, eLOG_Error,
                     ("%s[DSOCK::SendMsg] "
                      " Address \"%s\" incomplete, missing %s",
                      s_ID(sock, w + sizeof(w)/2), w,
-                     x_port ? "host" : &"host:port"[x_host ? 5 : 0]));
+                     missing));
          return eIO_Unknown;
     }
     if (s_ApproveHook) {