Fix coverity warnings.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 24 Sep 2019 07:50:25 +0000 (16:50 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 24 Sep 2019 07:50:25 +0000 (16:50 +0900)
src/tools/pgproto/main.c

index 31d119c509dfbbd408e7e604891c6b44c9188e98..6077788c9d79a29567a7ed63af03e07f6c4562e7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017-2018     Tatsuo Ishii
+ * Copyright (c) 2017-2019     Tatsuo Ishii
  *
  * Permission to use, copy, modify, and distribute this software and
  * its documentation for any purpose and without fee is hereby
@@ -578,6 +578,8 @@ process_function_call(char *buf, PGconn *conn)
                         * Actually we only support text format only for now.  To support
                         * binary format, we need a binary expression in the data file.
                         */
+                       send_byte(paramvals[i], paramlens[i], conn);
+#ifdef NOT_USED
                        if (ncodes == 0)        /* text format? */
                        {
                                send_byte(paramvals[i], paramlens[i], conn);
@@ -596,6 +598,7 @@ process_function_call(char *buf, PGconn *conn)
                                else
                                        send_byte(paramvals[i], paramlens[i], conn);
                        }
+#endif
                }
        }