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

entab: Fix some compiler warnings

parent 991f3e5a
......@@ -14,6 +14,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#if defined(WIN32) || defined(__CYGWIN__)
#define PG_BINARY_R "rb"
......@@ -181,11 +182,13 @@ main(int argc, char **argv)
if (*src == '\\')
escaped = TRUE;
if (*src == '"' || *src == '\'')
{
if (quote_char == ' ')
quote_char = *src;
else if (*src == quote_char)
quote_char = ' ';
}
}
else if (*src != '\r' && *src != '\n')
escaped = FALSE;
......
......@@ -11,6 +11,7 @@
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.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