Commit 5bb2ddc0 authored by Peter Eisentraut's avatar Peter Eisentraut

entab: Fix some compiler warnings

parent 991f3e5a
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include <unistd.h>
#if defined(WIN32) || defined(__CYGWIN__) #if defined(WIN32) || defined(__CYGWIN__)
#define PG_BINARY_R "rb" #define PG_BINARY_R "rb"
...@@ -181,10 +182,12 @@ main(int argc, char **argv) ...@@ -181,10 +182,12 @@ main(int argc, char **argv)
if (*src == '\\') if (*src == '\\')
escaped = TRUE; escaped = TRUE;
if (*src == '"' || *src == '\'') if (*src == '"' || *src == '\'')
{
if (quote_char == ' ') if (quote_char == ' ')
quote_char = *src; quote_char = *src;
else if (*src == quote_char) else if (*src == quote_char)
quote_char = ' '; quote_char = ' ';
}
} }
else if (*src != '\r' && *src != '\n') else if (*src != '\r' && *src != '\n')
escaped = FALSE; escaped = FALSE;
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <errno.h> #include <errno.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment